Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 333 Bytes

constant-naming.md

File metadata and controls

15 lines (9 loc) · 333 Bytes

Python Naming Convention > Constant Naming

SCREAMING_SNAKE_CASE

  • Should be all uppercase letters e.g. AGE, HEIGHT
  • If the name contains multiple words, it should be separated by underscores (_) such as DAYS_IN_MONTH
  • May contain digits but not as the first letter
class Product:
    MAX_TEMPERATURE = 36;