What's wrong with the py code? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antwort
+ 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