title: How to check for integer under a loop?
body: <pre><code>fqas = None
  while fqas not in ("yes", "no", "Yes", "No"):
      fqas = input("&gt;&gt;&gt; [yes/no]: ")
      if fqas.lower() == "yes":
           print("\nAwesome! Current pay: $", base_pay + 50)
      elif fqas.lower() == "no":
          fqas_no = int(input("if not, how much do you think she deserve? \n&gt;&gt;&gt; "))
          if 50 &lt;= fqas_no :
              print("AMAZINGGGG! current pay: $", base_pay + fqas_no)
              continue
          elif fqas_no &lt;= 50 :
              print("That's cool, current pay: $", base_pay + fqas_no)
              continue
          except ValueError:
              print("Numbers only please")
  </code></pre>
  
  <p>How do I add a last loop to check for integer under <code>fqas_no</code>? I have it checked for range, but I cant get it to check for integer. I get an invalid <code>SyntaxError</code>, when I try to use <code>ValueError</code>.</p>
  
  <p>The code works fine except for :</p>
  
  <pre><code>        except ValueError:
               print("Numbers only please")
  </code></pre>