Home / Expert Answers / Computer Science / jane-a-python-developer-in-a-company-has-written-a-code-for-an-application-based-on-classes-he-ha-pa156

(Solved): Jane, a Python developer in a company, has written a code for an application based on classes. He ha ...



Jane, a Python developer in a company, has written a code for an application based on classes. He has written the following incomplete code and wants the output of it:class Person:def __init__(self, name, age):self.name = nameself.age = agep1 = Person("Jack", 40)# put the line of code hereWhich of the following print statements will Smith use to get the following output:Jack40Each correct answer represents a part of the solution. Choose two.This type of question contains radio buttons and checkboxes for selection of options. Use Tab for navigation and Enter or space to select the option.Aoption Aprint(p1.age)Boption Bprint(p1.self)Coption Cprint(p1.Person)Doption Dprint(p1.name)



We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe