0
can you anyone help me to print coffee names...?
in this code i did all but i am confuse what to change in choice so that i can print coffee names also.... coffee = ["Café Latte", "Caffe Americano", "Espresso", "Cappuccino", "Macchiato"] choice = int(input()) try: print (choice) except: print ("invalid number") finally: print ("Have a good day")
5 ответов
+ 4
Maybe you are looking for this
print(coffee[choice])
+ 2
What is choice suppose to be?
+ 2
Yeah Thanks!
+ 2
Abhay thanks a lot for your code. It really helped. I've just changed my code according to it.
0
list number to choose coffee names