Python Best PracticesPremium
Use virtual environments, type hints, small functions, descriptive names, tests and a formatter such as ruff or black. Prefer EAFP (try and catch) and the standard library. The Zen of Python summarises the philosophy.
This is a Premium lesson
All the basic lessons are free. Advanced and in-depth lessons, with every example, exercise and quiz, are included with a Premium subscription.
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.