Whats the error? Find the Error: class Information: def__init__(self, name, address, age, phone_number): self.__name =name self.__address = address self.__age = age self.__phone_number= phone_number def main(): my_info = Information(‘John Doe’,’111 MyStreet’, ‘555-555-1281’)
Solution
class Information: def __init__(self, name, address, age, phone_number): self.__name = name self.__address = address self.__age = age self.__phone_number = phone_number def getName(self):
OR
OR