- 1
what is indentation?
5 Answers
+ 3
it. is a white space before the line mostly used for statements inside the loops
+ 2
instead of using braces ( like c ) to differentiate the blocks, here indentation (space or tab) is used. continued same intended contents are treated as single block
+ 2
indentation = space before the print statement
+ 1
It is only space that you provide before any line..
0
if x>10:
print ('the number is greater ') #indented line
print (' end of line ')
#The second line is indented. It is simply shown by the space before the print. It shows the block of code below the if statement.