title: i am new, program gives error "there are no type variables left in list"
body: <p>How the game works is that there is a 3-digit number, and you have to guess it. If you guess a digit in the right spot, you get a strike, and if you guess a digit but in the wrong spot you get a ball. I've coded it like this.</p>
  <pre><code>x = random.randint(1, 9) 
  y = random.randint(1, 9)
  z = random.randint(1, 9)
  userguessunlisted = input('What number do you want to guess?')
  numbertoguess = list[x, y, z] 
  
  userguess = list(userguessunlisted)
  b = 0
  s = 0
  while 0 == 0:
      if userguess[0] == numbertoguess[0]:
          s = s + 1
      if userguess[0] == numbertoguess[1]:
          b = b + 1
      if userguess[0] == numbertoguess[2]:
          b = b + 1
      if userguess[1] == numbertoguess[0]:
          b = b + 1
      if userguess[1] == numbertoguess[1]:
          s = s + 1
      if userguess[1] == numbertoguess[2]:
          b = b + 1
      if userguess[2] == numbertoguess[0]:
          b = b + 1
      if userguess[2] == numbertoguess[1]:
          b = b + 1
      if userguess[2] == numbertoguess[2]:
          s = s + 1
      print(s + &quot;S&quot;, b + &quot;B&quot;)
      if s != 3:
          b = 0
          s = 0
      else:
          print('you win!')
          break
  </code></pre>