Indentation is important in Python code
Indentation is important in Python code. Writing a program in other programming languages may indicate a piece of code that needs to be executed together by starting and closing curly brackets. It is not so in Python programming. Python code uses indentation to indicate a beginning of code, and the indentation ends means that that logic is over.
Using indentation to separate code into logic blocks makes code look cleaner than using curly brackets.
Using indentation forces a developer to write nice looking code.

Comments
Post a Comment