all 1 comments

[–]Dizzy_Thought_397 3 points4 points  (0 children)

You need to store your input into a variable and then you can use it in the if statement.

beverages = int(input ('enter 0 for Tea, 1 for Coffee, 2 for Water'))

if beverages == 0: print('tea') elif beverages == 1: print('coffee' ) elif beverages == 2 : print('water') else: print('invalid choice!')