Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. def guessingGame():
  2. anwsers = ["Kononowicz", "Suchodolski"]
  3. questionTries = 3
  4. questionTriesCounter = 0
  5.  
  6. while questionTriesCounter < questionTries:
  7. firstQuestion = input("What is the surname of famous president from Bialystok? ")
  8. if firstQuestion == anwsers[0]:
  9. secondQuestion = input("What is the nick")
  10. else:
  11. questionTriesCounter+= 1
  12. if questionTriesCounter == questionTries:
  13. print('game over.')
  14.  
  15.  
  16. guessingGame()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement