PEP8 style guide for Python
PEP8 is a style guide for Python that helps programmers write readable code. It is important to follow certain conventions to make our code readable. Some examples of coding conventions include the following:
- Inline comments should start with a
#Âand be followed by a single space. - Variables should have the following convention:Â
first_var. - Avoiding trailing whitespaces on each line. For example,
if name == "test":should not be followed by whitespaces.