Guest User

Untitled

a guest
Jan 17th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. songn = str(song.readlines()[randNum])
  2. reader= csv.reader(f)
  3. for row in reader:
  4. print (songn[0])
  5. guess = input("What is the song called?")
  6. score = 0
  7. correct_guess = False
  8. while True:
  9. if guess == songn:
  10. correct_guess = True
  11. break
  12.  
  13. score += 1
  14. if score>=total:
  15. break
  16. song_guess = input("Incorrect! Try again:n> ")
  17. if correct_guess:
  18. print("Answer correct!")
  19. else:
  20. print("game over")
Add Comment
Please, Sign In to add comment