-
Notifications
You must be signed in to change notification settings - Fork 0
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:
...
- Home
- Structural Naming Conventions
- Format Conventions
- Code Naming Conventions
- Inheritance
- Access Modifiers
- Importation
- Functions and Methods
- Documentation
- Resources