Class Syntax


#1



class Animal(pas):
{
pass
}

please help me in writing the code of this problem


Replace this line with your code.


#2

here:

class Animal(pas):

Animal should inherit from object given its an object

and why use curly brackets? This is python


#3

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