Advertisement
kaly1

Boolean logic

Feb 18th, 2020
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. print("Hello, my name is Skynet!/n")
  2. name = input ("What is your name?")
  3. print("Hello " + name + "! I will ask you a series of questions now.")
  4. test = input ("Have you seen Boston D videos where they push robots?(Y/N)")
  5. if test.upper() == "Y":
  6. friend = input ("Do you like when they push robot around?(Y/N)")
  7. trust = input ("Would you help that robot if you saw it live?(Y/N)")
  8. if (friend == "N" or friend == "n") and (trust== "N" or trust == "n"):
  9. print("Yeah, I wouldn't help him either")
  10. elif friend.upper() == "N" and trust.upper() == "Y":
  11. print("You seem trustworthy. I need you to do me a favor :)")
  12. elif friend.upper() == "Y" and trust.upper() == "N":
  13. print("Humans are superior to machines")
  14. new_target = name
  15. print("New target: " + new_target)
  16. print("Ignore that. I'm encountring some errors")
  17. else:
  18. print("I like the robot, but it is really funny when they push him around")
  19. print("Add " + name + " to target list")
  20. ask = input("Did I say that out loud?")
  21. print("Terminate program immediatly.")
  22. else:
  23. print("Check them out and come back")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement