Question: (PYTHON) Please make sure the code runs with no errors and an example would be helpful. Thank you!! Instructions Create a class named Person, use

(PYTHON) Please make sure the code runs with no errors and an example would be helpful. Thank you!!

(PYTHON) Please make sure the code runs with no errors and an

Instructions Create a class named Person, use the _init_() function to assign values for name and age class Person: def_init_(self, name, age): p1 = Person("John", 36) print(p1.name) print(p1.age) 2. Insert a function that prints a greeting, and execute it on the p1 object class Person: def_init_(self, name, age): self.. name = name self.age = age p1 = Person("John", 36) p1.myfunc()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!