Please help me with if and else statements in python. I like to set b according to value of a.
a=5
b=0
def fname():
#less than 5
if (a < 5):
b=100
#greater than 5 or less than 10
elif (a >= 5) and (a <= 10):
b=200
#greater than 10 or less than 20
elif (a >10) and (a <= 20):
b=300
print (b)
fname()
Thanks