Question: # here is the class for lions; read all comments and add missing class Lion ( Animal ) : This is a
# here is the class for lions; read all comments and add missing
class LionAnimal:
This is a Lion class, used to store information about lions.
def initself name:
Initialize Lion class. All we need now is the animal nick name.
# this class is only for lions, so we can define animal 'kind' as lion
kind "lion"
# this calls initialization of Animal class and sets the animal to given 'name'
superinitkindname
# in lines below we define attribute values for lions#
# default required area:
# ENTER VALUE arbitrary one or one you used in the previous
# inclass assignment
self.requiredarea
# set default number of Zoo keepers needed for lions:
# ENTER VALUE arbitrary one or one you used in the previous
# inclass assignment
self.requiredstaff
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
