title: Would like to know how to add some code to make my program be able to deal with letters being inputted
body: <p>My program is a simple arithmetic quiz however i want to know how to make it so that it doesn't just stop when i don't enter in an integer. </p>
  
  <pre><code>questionNo=0
  score=0
  
  name=input("What is your name?")
  print("Welcome ",name," to your arithmetic quiz!")
  
  time.sleep(1)
  
  while questionNo&lt;10:
      function=random.randint(1,3)
      if function==1:
          rNumber1=random.randint(1,100)
          rNumber2=random.randint(1,100)
          print("Question is : ", rNumber1," + ",rNumber2)
          guess=int(input("What is the answer?"))
          ans=rNumber1+rNumber2
          if ans==guess:
              print("Correct!")
              score+=1
              time.sleep(1)
          else:
              print("Wrong")
              time.sleep(1)
  
      elif function==2:
          rNumber1=random.randint(1,10)
          rNumber2=random.randint(1,10)
          print("Question is : ", rNumber1," X ",rNumber2)
          guess=int(input("What is the answer?"))
          ans=rNumber1*rNumber2
          if ans==guess:
              print("Correct!")
              score+=1
              time.sleep(1)
          else:
              print("Wrong")
              time.sleep(1)
  
      else:
          rNumber1=random.randint(1,100)
          rNumber2=random.randint(1,100)
          print("Question is : ", rNumber1," - ",rNumber2)
          guess=int(input("What is the answer?"))
          ans=rNumber1-rNumber2
          if ans==guess:
              print("Correct!")
              score+=1
              time.sleep(1)
          else:
              print("Wrong")
              time.sleep(1)
      questionNo+=1
  
  print("Well done ",name,"! You got ",score,"/10")
  </code></pre>