Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. valid_input = False
  2.  
  3. while valid_input == False:
  4. phrase = input("Hello Dave.... are your feeling happy or sad?")
  5. if phrase == "happy":
  6. print("that's fantastic Dave.... If that changes let me know")
  7. valid_input = True
  8. elif phrase == "sad":
  9. print("So sorry to hear that.... I recommend going out with a mate and having a beer!")
  10. valid_input = True
  11. else:
  12. print("I said happy or sad?!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement