Creating a class

huncho_supreme

 

Create a person.py file and write a person class that has the following attributes:

  • first_name (implied type string)
  • last_name (implied type string)
  • age (implied type int)

Write a constructor that initializes an instance of Person with the arguments passed to the function setting the attribute values

Write a method that determines if the current instance is a minor.  That is the age of person is under 18.

    • 5 years ago
    • 20
    Answer(1)

    Purchase the answer to view it

    NOT RATED
    • Person.py
    • VID-20210301-WA0001.mp4