daily pastebin goal
19%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #start
  2. drink_list = ["Beer", "Vodka", "Fanta", "Lemon"]
  3.  
  4. if drink_list == []:
  5.     print("no drinks in here, Good bye !")
  6. elif drink_list != []:
  7.     user_drink = input("what drink do you wana drink ? ")
  8.     if user_drink == "quit":
  9.         print("okay , good bye ! ")
  10. # list_o_matic -->
  11.     elif user_drink == "":
  12.         drink_list.pop()
  13.         print("we have ", drink_list)   # bis hier läufts 12:30 / 11.06.018
  14.    
  15.     for user_drink in drink_list: # not working
  16.         if user_drink in drink_list == False:
  17.            
  18.             drink_list.append(user_drink)
  19.            
  20. print(drink_list)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top