Skip to content

Functions

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 sum_numbers(x: int, y: int) -> int:
    ...

❌ Don't

def sum_numbers(x, y):
    ...

def sumNumbers(x: int, y: int) -> int:
    ...
Clone this wiki locally