2,599
edits
Efernandez (talk | contribs) |
Efernandez (talk | contribs) |
||
Line 17: | Line 17: | ||
== Code Layout == | == Code Layout == | ||
=== Indentation === | |||
Use 4 spaces per indentation level. See [https://www.python.org/dev/peps/pep-0008/#indentation indentation] for more information. | |||
=== Maximum line length === | |||
Limit all lines to a maximum of 79 characters. See [https://www.python.org/dev/peps/pep-0008/#maximum-line-length maximum line length] for more information. | |||
=== Imports === | |||
*Imports should usually be on separate lines | |||
<syntaxhighlight lang="python"> | |||
# Correct: | |||
import os | |||
import sys | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="python"> | |||
# Wrong: | |||
import sys, os | |||
</syntaxhighlight> | |||
== Naming == | == Naming == |