Class Syntax


class Animal(pas):

please help me in writing the code of this problem

Replace this line with your code.



class Animal(pas):

Animal should inherit from object given its an object

and why use curly brackets? This is python


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.