- 3
Module 7 quiz
Guys I'm really stuck what do I have to write on p.7 of the quiz??
5 odpowiedzi
+ 5
@name.setter is probably what your stuck on. See page two of the Properties lesson
+ 1
class Person:
def __init__(self, name):
self._name = name
@property
def name(self):
return self._name
@name.setter
def name(self, value):
self.
_name
= value
0
and I got no more exp, lol
0
Complete the blanks to create a setter for the property name
0
1) @name.setter
2)_name