Advertisement
Botontam

light travelling

Oct 29th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. phrase = input ("talk to me >")
  2. if phrase == "hi" or phrase == "hey":
  3. print ("hello")
  4. elif phrase == "whats your name" or phrase == "what's your name":
  5. print ("Marvin")
  6. elif phrase == "I dont' want to talk" :
  7. print ("so answer me how old are you")
  8. else:
  9. print ("sorry, I don't understand")
  10. answer = input ("then I have some questions >")
  11. if answer == "ok" or phrase == "no problem":
  12. input ("how fast travel the light?>")
  13. if "how fast travel the light?" == "300 m/s":
  14. print ("right")
  15. print ("bye")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement