Second elif | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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