+ 1

Second elif

I can't resolve the second part humidity = int(input()) if "humidity >=40" and "humidity<=60": print("norm") elif humidity<40: print( )

15th Dec 2021, 12:04 PM
josé manuel
josé manuel - avatar
2 ответов
+ 5
Remove the quotes from humidity. in the if else statements, because you are checking if humidity is >= 40 etc. And the print function which has no arguments will output a new line. And I recommend to go back and read through
15th Dec 2021, 12:08 PM
MATOVU CALEB
MATOVU CALEB - avatar
+ 1
josé manuel Anything inside double quotes is string not variable. No need of elif Read this line: "Don't output anything otherwise." so doesn't make sense to print anything.
15th Dec 2021, 2:43 PM
A͢J
A͢J - avatar