Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- songn = str(song.readlines()[randNum])
- reader= csv.reader(f)
- for row in reader:
- print (songn[0])
- guess = input("What is the song called?")
- score = 0
- correct_guess = False
- while True:
- if guess == songn:
- correct_guess = True
- break
- score += 1
- if score>=total:
- break
- song_guess = input("Incorrect! Try again:n> ")
- if correct_guess:
- print("Answer correct!")
- else:
- print("game over")
Add Comment
Please, Sign In to add comment