style guide for python code spaces per indentation (no tabs evermaximum line length of characters always import modulesafter initial comments or docstrings import them separately don' scatter them throughout your code namemodules with lowercase classes with capwords functions with lower_case_with_underscores constants with uppercase (and possibly " "use blank lines to separate groups of related code surround operators with single space on either side avoid extraneous whitespace in other situations consistencyyou really should read through pep