My goal is to have something like this:
x = 201
if x >= 100 <= 200:
print(x)
else:
print('Less Than 100 Or More Than 200')
but it doesn’t work:
output: 201
basically anything smaller than or equal 100 and anything smaller or equal 200
Would this be possible?
>Solution :
you wanna do this :
x = 201
if 100<= x <= 200:
print(x)
else:
print('Less Than 100 Or More Than 200')