title: Python 3 number guessing game
body: <p>I created a simple number guessing game, but every time I don't type in a number the system crashes. Can someone please help!</p>
  
  <pre><code>import random
  
  randNum = random.randint(1, 100)
  guesses = 0
  
  for i in range(1, 8):
      guesses = guesses + 1
      print("hi human guess a number 1-100! \n")
      guess = input()
      guess = int(guess)
  
      if guess &gt; randNum:
          print("your guess is too high")
  
      elif guess &lt; randNum:
          print("your guess is too low")
  
      elif guess == randNum:
          print("duuude you're a genius \n")
          print("you needed " + str(guesses) + " guesses")
  </code></pre>