Skip to content

Function Parameters

Vinicius Reif Biavatti edited this page Jul 25, 2022 · 1 revision
  • Use a good representation name
  • Use underscore to separate
  • Use type hints
  • Do not use camel case
  • Do not use special symbols
  • Do not use capital letters

✅ Do

def multiply(number_1: int, number_2: int) -> int:
    ...

❌ Don't

def multiply(number1: int, n: int) -> int:
    ...
Clone this wiki locally