Python uses blocks for indentation rather than using curly braces.
Both tabs and spaces can be given for indentation, but the standard rule for the python indentation is four spaces.
Indentation in a programming language refers to the space left before starting a line of code. In other programming languages, indentation is mainly used for readability, but it plays a significant role in python. Python utilizes indentation to indicate a block of code.
In python, enforcing indentation makes the code cleaner and neater, and it also makes the entire language much consistent and similar. In line continuation, it can be ignored, but it is a better practice to follow to enhance the code's readability.
|