title: '<' not supported between cases - Number guessing game
body: <p>I am trying to create a number guessing game in Python for a school project. I have made a basic game that will work fairly well, but I want to add in some exception handling in case the user enters something incorrectly. For example, this is a section of my code:</p>
  
  <pre><code>def Normal_Guess():
      number = round(random.uniform(0.0, 100.0),2)
      guess = ""
      while guess != number:
          try:
              guess = float(input("Please guess a number between 0 and 100: "))
          except ValueError or TypeError:
              print ("That isn't even a number!")
  
          if guess &lt; number and guess &gt;= 0:
              print ("You need to guess higher!")
          elif guess &gt; number and guess &lt;= 100:
              print ("You need to guess lower!")
          elif guess == number:
              print("Congratulations! You guessed the number!")
          elif guess &lt; 0 or guess &gt; 100: 
              print ("The number you guessed is not between 0 and 100")
          else: 
              print("That isn't even a number!")
      New_Game()
  </code></pre>
  
  <p>This works fine when the user enters a float or integer value as "guess", and the Try-Except clause I have seems to catch if the user enters anything but a number at first, but the program seems to also carry on to the "if" statements. I am getting a TypeError saying that "'&lt;' not supported between instances of 'str' and 'float'".</p>
  
  <p>I have tried encompassing the entire loop in a Try-Except clause, and that doesn't work. I have no clue what I am doing wrong. Any help is much appreciated.</p>