what is the meaning of indent i don't understand? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what is the meaning of indent i don't understand?

29th Jun 2016, 10:06 AM
Asmi Gulati
Asmi Gulati - avatar
4 Answers
+ 2
indent means putting the pcontent of program with proper spacing from the border like...for i in range(10): print(i) here print is indented properly that is print is written with proper spacing under for.
29th Jun 2016, 10:10 AM
Nishant Sardana
Nishant Sardana - avatar
+ 1
Instead of using cally braces like other programming languages, Python uses the indention method (white spaces in the beginning of a statement) to indentify and separate the block(function, loop, if statement..) from the other regular code.
29th Jun 2016, 1:24 PM
Hamdev
Hamdev - avatar
+ 1
indentation is used for a very specific purpose it creates a sub code that runs only when the above statement is true and if it is found to be false then the code doesn't run. it's generally used after a semicolon(:)
29th Jun 2016, 8:29 PM
ishu kumar
ishu kumar - avatar
+ 1
indent means the space after the margin to your code the distance between the margin and your code
29th Jun 2016, 10:22 PM
John Mwai
John Mwai - avatar