How to Write Clean Python Code - 5 tips beginner to advanced

preview_player
Показать описание
These are my five tips on how to write clean python code. This is my first video so any feedback is appreciated!
Write cleaner python code with these tips:

1. Function and Variable naming.
2. Constant variables.
3. Documentation strings (docstrings)
4. Type hints
5. Method pointers
6. Bonus tip at the end.

Рекомендации по теме
Комментарии
Автор

In python 3.5+ type hints are baked into the language, so if you're annotating your variables with primitive types, no import is required.

paulzupan
Автор

Thanks for watching. Do you have any advice to add? Feel free to ask questions, I'll answer all of them.

cellscodingcells
Автор

Super! I want more! Thank you! When you say 'here' you see where you pointer is, but we have to search the screen, so better to also highlight what you are indicating.

FritsvanDoorn
Автор

Sad you are not longer active here, but thanks for this great video ❤️

venuskratos
Автор

Actually you don’t need to import typing. And it is bad practice to use * in import statements

alexbigkid