Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. def play_again():
  2. again= input("would you like to play again? y for yes and n for no")
  3. while again not in ['Y','y','N','n']:
  4. again = input("please enter 'Y' or 'N'")
  5.  
  6. if again== 'y' or 'Y':
  7. do_the_quiz()
  8. else:
  9. print("cheers lad thanks for playing")
  10. exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement