how to make the code interactive PYTHON with INPUT() | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuesta
+ 3
print("My best friend is " + input().title() + ".")
27th Feb 2019, 7:58 PM
Diego
Diego - avatar