DEV Community

Discussion on: Python pro tips

Collapse
 
paddy3118 profile image
Paddy3118

You state "Write Object Oriented code".
You should learn it, and learn when to use it or not. Sometimes a function is all you need.

Collapse
 
po0q profile image
pO0q 🦄

totally agree with you on that point

Collapse
 
epogrebnyak profile image
Evgeny Pogrebnyak

as an idea for exercide - instead of a class with methods, write a dataclass and functions that operate on it, see what is cleaner and where would you prefer either

Some comments have been hidden by the post's author - find out more