title: How to make my count reset on for loops
body: <p>Here is my code:</p>
  
  <pre><code>for count in range(1,numGames+1):
      print()
      try:
          print("Game", str(count))
          atBats = input("How many at bats did the player have? ")
          atBats = int(atBats)
          hits = input("How many hits did the player have? ")
          hits = int(hits)
          battingAverage = (hits / atBats)
      except Exception as err:
          print("Please enter a number")
          print(err)
  </code></pre>
  
  <p>Currently, when a letter is entered for <code>hits</code> or <code>atBats</code> for Game 1, it throws the exception and says <code>Please enter a number,</code> but it goes right to Game 2 without giving the user a chance to enter a new input for Game 1. </p>
  
  <p>I would like to know if there is any way where it resets the game count when an exception is thrown.</p>