if less than python code example
Example 1: if statements with true or false statements in python 3
temperature = float(input('What is the temperature? '))
if temperature > 70:
print('Wear shorts.')
else:
print('Wear long pants.')
print('Get some exercise outside.')
Example 2: python if greater than and less than
if 10 < a < 20:
whatever
Example 3: how to do more than or less than as a condition in pythonb
var1 = 3
var2 = 2
if var1 > var2:
print('3 is more than 2')
if var2 < var3:
print('2 is less than 3')