0
How to make program to check temperature If the temperature is between 36.1 and 36.9 print "ok" If not print "not ok"
How to make program to check temperature If the temperature is between 36.1 and 36.9 print "ok" If not print "not ok"
6 ответов
+ 2
I just need help with condition for if statement
+ 1
Please post your attempt
+ 1
If the temperature is between 36.1 and 36.9 print "ok"
If not print "not ok"
+ 1
if temp >= 36.1 and temp <= 36.9:
print "ok"
This is python
0
Check this:
tmp = float(input())
if (tmp >= 36.1 and tmp <= 36.9):
print("ok")
else:
print("not ok")