class studentdef display(self)defining method in class print("hello python"in python programming self is default variable that contains the memory address of the instance of the current class so we can use self to refer to all the instance variable and instance methods objects and creating objectsan object is an instance of class that has some attributes and behavior objects can be used to access the attributes of the class exampleclass studentdef display(self)defining method in class print("hello python" =student(#creating object of class display(#calling method of class using object outputhello python