title: How to repeat a section of the program until the input is correct?
body: <p>I want my code to be repeated until the player guesses correctly.</p>
  <pre><code>ghuess=input(&quot;state a number between 1-100&quot;)
  if ghuess&gt;number:
      print &quot;too high try again!&quot;
  elif ghuess&lt;number:
      print &quot;too low try again!&quot;
  else:
      print &quot;well done! ghuess you have won..&quot;
      time.sleep(1)
      print &quot;3&quot;
      time.sleep(1)
      print &quot;2&quot;
      time.sleep(1)
      print &quot;1&quot;
      time.sleep(1)
      print prize
  </code></pre>