Hey guys, new user here, just taking a course on python and theres a simple task I'm trying which im failing. I'm basically trying to get a program to validate user input based on rules that i define. Namely, num1 input and num2 input are integers which can not be below 0 or above 99. The input is taken from an html form which ive got. It's just the pyhton side of it I am having trouble with. Would anyone be able to help? This is what I have so far. Feel free to make fun of how badly written the code is, thanks!
num1 = input("Enter Number: ")
num2 = input("Enter Number: ")
if num1 < 0:
print '%i' %(num1)
print ' error 1 '
else:
print "%i" %(input)
print ' ok 1 '
if num1 > 99:
print ' error 2 '
else:
print ' ok 2 '
if num2 < 0:
print ' error 3 '
else:
print ' ok 3 '