What's wrong with the py code? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

What's wrong with the py code?

temp = int(input()) if temp >=100: print("Boiling")

4th Nov 2022, 10:40 AM
Sanjid Hasan
Sanjid Hasan - avatar
1 Respuesta
+ 3
the code block in the if-statement is not indented. Check the given examples again and pay attention to indentation.
4th Nov 2022, 10:43 AM
Lisa
Lisa - avatar