I'm getting a TypeError. I want to call out my initialised parameters
Code:
Code:
class Students:
def _init_(self, name,age,grade):
self.name = name
self.age = age
self.grade = grade
student1 = Students("Bob", 12, "7th")Error:Error:Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
student1 = Students("Bob", 12, "7th")
TypeError: this constructor takes no arguments
