Advertisement
Guest User

Untitled

a guest
Sep 10th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. while True:
  2.     print("Would you like to play again? (yes or no)")
  3.     playAgain = input()
  4.     if playAgain in ('yes', 'y'):
  5.         initGame()
  6.     elif playAgain in ('no', 'n'):
  7.         break
  8.     else:
  9.         print("You should choose YES or NO")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement