- 1

what is indentation?

13th Aug 2016, 8:55 AM
Minesh Chaudhary
Minesh Chaudhary - avatar
5 Answers
+ 3
it. is a white space before the line mostly used for statements inside the loops
14th Aug 2016, 12:43 PM
Jayvardhan Deshmukh
Jayvardhan Deshmukh - avatar
+ 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
13th Aug 2016, 1:37 PM
Gilli Vimalraj
Gilli Vimalraj - avatar
+ 2
indentation = space before the print statement
15th Aug 2016, 8:10 AM
Udoh Nse David
Udoh Nse David - avatar
+ 1
It is only space that you provide before any line..
31st Aug 2016, 9:10 AM
Shyam Sundar
Shyam Sundar - avatar
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.
30th Jan 2017, 5:51 AM
Ruth Waiganjo
Ruth Waiganjo - avatar