0

Please help me with this

where to use intendation in if statements.please explain

4th May 2018, 8:52 AM
Surinder Kumar
Surinder Kumar - avatar
2 Answers
+ 4
if 5==5: print(8) The statements you want to execute if the if-statements evaluates to true are what you indent if 6==7: print(1) print(2) output is 2 is since "print(2)" is not in the if statement
4th May 2018, 8:56 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 2
What language? In most languages indents are only for readability. On others like Python, they're required to distinguish between two scopes.
5th May 2018, 12:02 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar