Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#start
drink_list = ["Beer", "Vodka", "Fanta", "Lemon"]
if drink_list == []:
print("no drinks in here, Good bye !")
elif drink_list != []:
user_drink = input("what drink do you wana drink ? ")
if user_drink == "quit":
print("okay , good bye ! ")
# list_o_matic -->
elif user_drink == "":
drink_list.pop()
print("we have ", drink_list) # bis hier läufts 12:30 / 11.06.018
for user_drink in drink_list: # not working
if user_drink in drink_list == False:
drink_list.append(user_drink)
print(drink_list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment