Question: Implement a class Person that supports these methods: i. __init__( ): A constructor that takes as input a persons name (as a string) and birth
Implement a class Person that supports these methods: i. __init__( ): A constructor that takes as input a persons name (as a string) and birth year (as an integer) ii. age( ): Returns the age of the person iii. name( ): Returns the name of the person Use function localtime( ) from the Standard Library module time to compute the age.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
