Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. # problem 1 v.2
  2.  
  3.  
  4. gimme_food = input ("Hi, I'm hungy. What are you going to feed me?")
  5. junkfoodlist = ['hotdog', 'pizza', 'cheeseburger']
  6.  
  7.  
  8. while gimme_food in junkfoodlist:
  9.  print ('Mmm, that is really good')
  10.  break
  11.    
  12. else:  
  13.  print ("Mmm, I cant eat that")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement