Share: Facebook | Twitter | Whatsapp | Linkedin Visits: 952
If you have worked with other programming languages like Java, C#, or C/C++, you are aware that the statements in such languages are separated by semicolons (;).
However, Python builds the code structure using whitespace and indentation.
The following Python code sample demonstrates:
You do not need to know the codes meaning right now. Please focus on the organization of the code.
There is no semicolon to mark the conclusion of the sentence at the end of each line. Additionally, the code is formatted using indentation.
The following benefits of organizing Python code with indentation and whitespace:
First off, unlike in other programming languages like Java or C#, you would not ever miss the starting or ending code of a block.
The coding style is also largely consistent. The code of one developer is identical to yours if you have to maintain it.
Third, compared to other programming languages, the code is easier to read and understand.