What does indentation mean in programming? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What does indentation mean in programming?

Please some one answer my question with example. "tnx"

26th Nov 2019, 5:47 PM
Yosef Girma
Yosef Girma - avatar
3 Answers
+ 5
In Java it's used to aid readability. In Python it's also a necessary part of the syntax.
27th Nov 2019, 12:22 PM
Sonic
Sonic - avatar
+ 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
26th Nov 2019, 8:33 PM
zemiak
+ 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
28th Nov 2019, 2:50 AM
rockrun
rockrun - avatar