title: how to fix "guess the song game" python
body: <p>I am trying to create this game for guessing songs however it will not allow me to have over one song even after i change the range I also would like to know how to add the code to do scores for guessing the write song.</p>
  
  <pre><code>import random
  
  for x in range(0,1):
      randNum = int(random.randint(0,1))
  
      song = open("Songs.txt", "r")
      songname = str(song.readlines()[randNum])
      print(songname[0])
      song.close()
  
      artist = open("Artists.txt", "r")
      artistname = artist.readlines()[randNum]
      print(artistname[0])
      artist.close()
      y = 0
  
      songGuess = input("What is the song called?")
      while(y&lt;=2):
          if songGuess == songname:
              print("Answer correct!")
              break
          else:
              y = y + 1
              songguess = input("Incorrect! Try again:")
  
          if y == 2:
              print("GAME OVER")
              break
  </code></pre>