Question: Python exercise Ex 4: Write a class that can describe a person. The person needs to have a name, an age, and a phone number
Python exercise

Ex 4: Write a class that can describe a person. The person needs to have a name, an age, and a phone number (set to 798-466-2633 by default). The class must have a function describe which, when called, prints out the information about the person. In [1 class Person: def __init__O: pass 4 def describe): print' pass 8 9 p1 -Person(...) 10 p2Person...) 11 p1.describe() 12 p2.describeO
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
