Created
June 11, 2018 15:01
-
-
Save JosephCurvin/092409d498c5d7a2e491080f9f0eb1ea 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: # 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