0
if 10 > 5: print("10 greater than 5") print("Program ended")
in the following example why the second print line dont give an error even though indentation is not applied
2 Respuestas
+ 3
cause its out of the if statement, that will print "10 is greater than 5" and "program ended" but if u put 10 < 5 on the condition or something else that is false it will only print "program ended" cause that is out of the if
+ 1
Because after the if condition executes then run codes which are out of the if