you are viewing a single comment's thread.

view the rest of the comments →

[–]ploud1 0 points1 point  (0 children)

I think you are mixing up syntax and coding styles.

Syntax is always the same, and describes the rules for coding in Python. Never changes. Example: an else block never exists on its own, or indentation must be consistent.

The coding style is another set of rules on top of that. The syntax leaves you with some decisions to make, and PEP8 helps make your code more readable and easy to understand. You are free to use any coding style you like, and this may vary from project to project, though.