Created
June 11, 2018 11:04
-
-
Save JosephCurvin/05572f5bbfbf799885f18d8cbcb5d8c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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: # wtf ? | |
if user_drink in drink_list: | |
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