+ 5

The comfortable relative humidity for humans is between 40% and 60%. The given program takes the percent of humidity as input.

My code out = int(input()) #your code goes here if out >= 39 and out <= 60: print ("norm") elif out >= 59 and out <= 200: print ("inclusive") Only one sample is not right. What should I do with this code.

13th Apr 2022, 4:34 AM
Om Maurya
Om Maurya - avatar
5 ответов
+ 2
Om Maurya send your complete question link or paste it here?
13th Apr 2022, 8:17 AM
NonStop CODING
NonStop CODING - avatar
+ 1
I think it's not necessary to use elif statement. Please read the task once.
13th Apr 2022, 4:59 AM
Simba
Simba - avatar
+ 1
if humidity>=40 and humidity<=60: print("norm")
14th Apr 2022, 12:58 AM
Simba
Simba - avatar
0
why are you including 39 when it's 40 their, write 40 their or just more than 39 and why include 59 because 59 is between 40 and 60 so it will say normal write just more than 60 instead of 59 if out > 39 and out <=60 elif out > 60 and out <=200
13th Apr 2022, 5:03 AM
NonStop CODING
NonStop CODING - avatar
0
Not working
13th Apr 2022, 6:36 AM
Om Maurya
Om Maurya - avatar