+ 1

How to use @property in Python 3

I'm trying to understand how to use @property doing a little code, but because I'm still new about decorators, I'm not sure about where to put @property in the code... https://code.sololearn.com/capVnNv5Ku93 Where should I put @property in the code? or the way I'm coding to use @property is not correct? Also, Is not very clear about how @property works and how @property is equivalent to value = property(getx, sety). What's the difference between both notation? What's the correct way to use @property and decorators?

7th Mar 2019, 8:22 AM
Eduardo Perez Regin
Eduardo Perez Regin - avatar
1 Réponse
+ 2
hi ! this lesson about properties should probably help you: https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2472/
7th Mar 2019, 9:24 AM
Kazya
Kazya - avatar