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.
can anyone help me to figure out the code in my while loop. Thanks
price = 110;
ttt = 1;
while price < 0 or price > 100:
price = input('Please enter your marks for Maths:');
ttt =ttt +1;
if ttt >= 2:
print( 'This is an invalid entry, Please enter a number between 0 and 100')