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"

4th Nov 2020, 4:58 PM
vaibhav
vaibhav - avatar
6 Respuestas
+ 2
I just need help with condition for if statement
4th Nov 2020, 5:10 PM
vaibhav
vaibhav - avatar
+ 2
Shadoff I can recognise you from your culinary tastes sir Python. Are you being a poor copy of Shadow?🤣
4th Nov 2020, 7:55 PM
Davide
Davide - avatar
+ 1
Please post your attempt
4th Nov 2020, 5:09 PM
Steve Sajeev
Steve Sajeev - avatar
+ 1
If the temperature is between 36.1 and 36.9 print "ok" If not print "not ok"
4th Nov 2020, 6:11 PM
Shadoff
Shadoff - avatar
+ 1
if temp >= 36.1 and temp <= 36.9: print "ok" This is python
5th Nov 2020, 3:17 AM
Steve Sajeev
Steve Sajeev - avatar
0
Check this: tmp = float(input()) if (tmp >= 36.1 and tmp <= 36.9): print("ok") else: print("not ok")
5th Nov 2020, 5:06 PM
UNKNOWN
UNKNOWN - avatar