Thank you for your reply. I did web search and still would not be able to understand that why it shows type error. Could you please share with me that how you got the output.
class ClassName:
pass
instance= ClassName()
class Students:
def init(self,name,age,grade):
self.name = name
self.age = age
self.grade = grade
I am guessing that your “init” method has been written with only one underscore character on each side; something like _init_. If that is the case, note that it needs two underscore characters on each side: __init__.