0
what is the meaning of indent i don't understand?
4 Respostas
+ 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.
+ 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.
+ 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(:)
+ 1
indent means the space after the margin to your code
the distance between the margin and your code