Pythonic coding conventions
Last updated:
PYTHON
In PEP 8, from The quick python book.
- Module/package names - short lower case, underscores only if needed
- Function names - all lowercase, underscores for readability
- Variable names - all lowercase, underscores for readability
- Class names - capitalise each word
- Constant names - all caps with underscores
- Indentation - 4 spaces, no tabs
- Comparisons - don’t compare explicitly to true or false