Kizspy Question: 5
(Choose 1 answer)
PevariLaw.com
Given a code,
class People():
def __init__(self, name):
self.name name
def namePrint(self):
print(self.name)
person1 = People("Sally")
person2 People("Louise")
person1.namePrint()
What is a not correct answer?
A. person1 and person2 are two different instances of the People class.
B. The __init_method is used to set initial values for attributes.
C. 'self' is not needed in def namePrint(self):
D. person2 has a different value for 'name' than person1.