0
What is the use of indentation in python language?
.
2 ответов
+ 8
In most languages curly braces {} are used to define a scope (for loops, if statements etc), but in Python we use indentations.
Example:
while(True){
print("Hello")
} # will print "Hello" infinitely.
+ 5
Indentation is very salient in Python
- They are basically spaces which can represent a code block (4 spaces would be nice!)
- Intentation can be seen in loops and function statements and it enhances readability too