0
ERROR On @egg.setter
the example was with "_", there is confusing...
5 Answers
+ 1
Python 3 > OOP > Properties > Last Question
+ 1
hi,
To define a setter, you need to use a decorator of the same name as the property, followed by a dot and the setter keyword.
in this question, the property is egg
in the example, the property is pineapple_allowed
0
Its confusing the answer that the questions asks for... its different than the example