Skip to content

Files

Latest commit

4833e10 · Feb 17, 2019

History

History
executable file
·
12 lines (10 loc) · 340 Bytes

module-naming.md

File metadata and controls

executable file
·
12 lines (10 loc) · 340 Bytes

Python module Convention > Module Naming

snake_case

  • Should be all in lowercase letters such as requests, math
  • If contains multiple words, it should be separated by underscores (_) e.g. expression_engine.py
  • Should resonate with the class or methods inside the module
from math import factorial
class Car:
    ...