r/PythonLearning • • 17d ago

Get and setter in pyhton

I'm learning Python, and this part has left me a little confused, because in other languages the way it's used is different; in Python you use @property, I'd like to understand how this really works in a simplified way, so I can truly grasp it and not just memorize it. If you could help me, I'm still new to programming.

2 Upvotes

12 comments sorted by

View all comments

3

u/realmauer01 17d ago

Becuase their is no privacy there is no need for getter and setter.

Especially not the js style