(Choose 1 answer)
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 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.
Exit 19