Indentation ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Indentation ?

WhAT IS iNDENTATION ?

5th Jan 2021, 10:10 AM
Augustin EHRETT
2 Answers
+ 5
Indentation just means the space at the beginning of a statement. In most of the languages indentation is mainly used for better readability of the code. But in Python you need to correctly indent your code cause it uses indentation to indicate a block of code. If you messed it up you'll get an indentation error. P.S. in the tag please mention the language instead of your name.
5th Jan 2021, 10:17 AM
Minho
Minho - avatar
+ 1
This is very necessary in python. This shows which block of code belongs to which loop/function. etc.. Watch this:- https://youtu.be/nWuADdAMmeQ
5th Jan 2021, 1:45 PM
Aditya
Aditya - avatar