+ 2
What does indentation mean in programming?
Please some one answer my question with example. "tnx"
3 ответов
+ 5
In Java it's used to aid readability. In Python it's also a necessary part of the syntax.
+ 3
it means how many spaces is at begin of line of code. It is important specially in Python where incorrect indentation means error, but in other languages it is need for better readability
+ 1
indentation is basically used in python because it simplifies the code as if we do not use indentation it wont be easy to differentiate which part of code is used to perform which task
as we us indentation in python similarly we use'{}' in c++ to make code easy to understand