title: Python while loops
body: <p>I have this code in python 3,to check for errors on input but i need to determine that the input is an integer and if not to print the error message.</p>
  
  <p>can anyone help me to figure out the code in my while loop.
  Thanks</p>
  
  <pre><code>price = 110;
  
  ttt = 1;
  
  while price &lt; 0 or price &gt; 100:
  
      price = input('Please enter your marks for Maths:');
      ttt =ttt +1;
      if ttt &gt;= 2:
          print( 'This is an invalid entry, Please enter a number between 0 and 100')
  </code></pre>