Skip to content

Latest commit

 

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:
    ...