how to make the code interactive PYTHON with INPUT() | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

how to make the code interactive PYTHON with INPUT()

names = [ 'benet', 'maxim', 'ertine', 'yarik', 'dima' ] message = ("My best friend is " + (names[0].title()) + ".") print(message)

27th Feb 2019, 6:06 PM
Roman Vorobyev
Roman Vorobyev - avatar
1 ответ
+ 3
print("My best friend is " + input().title() + ".")
27th Feb 2019, 7:58 PM
Diego
Diego - avatar