I have this code I'm just playing with, As I'm new to python, which is this:
a = 0
while a < 10:
a = a + 1
print("A is Less than 10")
I want to add some more code that says: If a is more than 10 but less than 20, print this:
I tried:
a = 0
while a < 10:
a = a + 1
print("A is Less than 10")
while a < 20:
a = a + 1
print("A is More than 10, but less than 20.")
But all that does is print "A is more than 10, but less than 20"
Basically, is there a "Less than but greater than" function in python?