Advertisement
jhoward48

Untitled

Jun 2nd, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.81 KB | None | 0 0
  1. phrase = input("Talk to me > ")
  2. if phrase == "hi":
  3.     print("hello")
  4. elif phrase == "whats your name" or phrase =="what's your name? ":
  5.     print("Marvin")
  6. else:
  7.     print("sorry I don't understand this")
  8. print("bye")
  9. score =0
  10. question_1 = input(" How many wifes did Henry the eighth have?")
  11. if question_1 != "6":
  12.      print (" You are incorrect")
  13.      score = score
  14.      print ( " your score is ", score)
  15.  
  16. else:
  17.      score = score +1
  18.      print (" You are correct.  Your score is ", score)
  19.      
  20. question_2 = input(" What was Henry the Eights second wife called? ")
  21. if question_2 != "Anne" and question_2 != "Anne Boylen":
  22.      print (" You are incorrect")
  23.      score = score
  24.      print ( " Your new score is ", score)
  25. else:
  26.      score = score +1
  27.      print ( " you are correct, your new score is ", score)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement