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 Answer
+ 3
print("My best friend is " + input().title() + ".")
27th Feb 2019, 7:58 PM
Diego
Diego - avatar