0
Please help me with this
where to use intendation in if statements.please explain
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
+ 2
What language? In most languages indents are only for readability. On others like Python, they're required to distinguish between two scopes.