DEV Community

Discussion on: Data Types in Python

Collapse
 
michaelcurrin profile image
Michael Currin

What I mean is for a teaching a beginner syntax, get them to learn code that is best practice and common i.e. followed by most Python coders. So they pick up good habits

And then as a side note you can mention the alternative syntax without brackets as valid but not encouraged, and like you said something for den

In this case it is covered in the official style guide for Python in PEP8, which will be enforced by style and lint tools too.

Brackets around comma are recommended and leaving it out is less readable it says.

pep8.org/#when-to-use-trailing-commas