Question: Practice Exercise 1 4 . 1 Create a program called PersonClass.py In this program, ceate a Person class with the following attributes: name: a string
Practice Exercise
Create a program called
PersonClass.py
In this program, ceate a Person class with the following attributes:
name: a string representing the person's name
age: an integer representing the person's age
The Person class should also have the following methods:
say hello: prints out a message that includes the person's name
calculate birth year: returns the year in which the person was born assuming the current year
Next create another program called ExBuffID.py and create an object for the Person with your own information.
Upload both the
PersonClass.py and ExBuffID.py to WTClass.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
