title: How fix the error :invalid literal for int() with base 10: 'Luck'?
body: <p>The code below is what is used in my coursework. At the moment the line "if int(what_skill) &lt; 0 or int(what_skill) > 9:" is producing the error above. I have tried changing it to a str() however this produces another error. </p>
  
  <p>def player():</p>
  
  <pre><code>vigor = 1
  
  endurance = 1
  
  strength = 1
  
  dexterity = 1
  
  intelligence = 1
  
  luck = 1
  points = 25
  while points !=0:
      what_skill = input("What skill would you like to add to? Vigor, Endurance, Strength, Dexterity, Intelligance, Luck? ")
      print(what_skill)
      add_points = int(input("You have " + str(points) + " points left. How many points from 1-9 would you like to add to " + str(what_skill) + "? "))
  
  
      if int(add_points) &gt; 9:
          print("Too many points")
          print(add_points)
      else:
          if int(what_skill) &lt; 0 or int(what_skill) &gt; 9:
              print("invaid choice")
          else:
              update_skill = int(what_skill) + int(add_points)
              points = points - add_points
  </code></pre>