0
How do I create x is greater than or equal to 0 but less than or equal to 10 in Python?
I have tried x >= 0<= 10 and x >= 0 or <= 10
5 Respuestas
+ 1
Thanks. I am working on a BMI program and I will need to define output in that range to give proper advise to users.
+ 1
0 <= x <= 10
0
Try x>=0 and x<=10 instead of x>=0 or <=10
0
Ikbal Khan your suggestion works. Thanks.