Question: Given the class below: class Cat: species = 'mammal' def _ init _ ( self , name, age ) : self.name = name self.age =
Given the class below:
class Cat:
species 'mammal'
def initself name, age:
self.name name
self.age age
a Instantiate the Cat object with cats
b Create a function a function and NOT a class method that finds the oldest cat marks
c Print out: "The oldest cat is x years old.". x will be the oldest cat age by using the function in #
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
