Whats Error Find Error Class Information Def Init Self Name Address Age Phonenumber Selfna Q37155174

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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.