title: Guess the Number game python3 bugs
body: <p>I am using Python3. My game does work, but there are some bugs. For instance, if I input a number higher than 10, I still get "too high" statement, but as soon as I input a number after, I usually get "you got it!!". Also, try inputting the number 10 (or any number) over and over again and see the result. Sometimes it just crashes or doesn't print anything back. </p>
  
  <p>Try and mess around with different int inputs, and you may understand what I mean by, there are a few bugs. The program doesn't return anything if I input the same number over and over again, but randomly, it sometimes says "you got it!!" after inputting the same number over and over again...</p>
  
  <p>Any way I can improve my code? Thank you!!</p>
  
  <pre><code>import random
  
  # Random number generator from 1 - 10 for simplicity.
  num = random.randint(1, 10)
  
  # User inputs their guess in the form of an int.
  prompt = "Guess the number from 1 - 10: "
  guess = int(input(prompt))
  
  # Reaction print statements.
  how_wrong = (["too high", "too low"])
  correct = "you got it!!"
  
  while guess != num:
      if guess &gt; num:
          print (how_wrong[0])
          guess = int(input(prompt))
  
      if guess &lt; num:
          print (how_wrong[1])
          guess = int(input(prompt))
  
      else:
          print (correct)
          break
  </code></pre>