title: How would you program a loop that loops a certain question until answered right? How can I code a message to show that they answered it wrong
body: <p>I've just started learning python a month ago and I've been wanting to create a choose your story prompt as one.</p>
  <p>It looks like this</p>
  <pre><code>while True:
      try:
          party = int(input(&quot;How many people joined the party &quot;))
      except ValueError:
          print(&quot;Sorry, I didn't understand that.&quot;)
          continue
  </code></pre>
  <p>A few things I noticed and don't know how to fix is this</p>
  <ol>
  <li>I can't set a maximum number of people to join the party and without that, it loops constantly with message input no matter what.</li>
  <li>I can't stop a negative input</li>
  <li>I can't enter a &quot;Please enter a number below that&quot;
  Sorry if this is dumb, I just came to a website that usually fixed my issues in python and couldn't find something that fixed my issues exactly.</li>
  </ol>