Advertisement
HBSB

Python 101 2.5 if it wasn't that do this

Dec 2nd, 2020
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. phrase = input("Talk to me. > ")
  2. if phrase=="What's your name?" :
  3.     print("I'm called Marvin.")
  4. phrase = input("Marvin, I want to learn python for programming.  Will you help me? >" )
  5. if phrase == "Of course.":
  6.     print("Thank you.")
  7. phrase = input("I've told you my name.  Now please tell me yours? >")
  8. if phrase == "OK.  I'm Lorna." :
  9.     print ("Hi, Lorna.  Pleased to meet you.  I will help you all I can.")
  10. print("Thank you.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement