constructors are generally used for instantiating an object the task of constructors is to initialize(assign valuesto the data members of the class when an object of class is created in python the __init__(method is called the constructor and is always called when an object is created syntax of constructor declaration def __init__(self)body of the constructor examplefor creating constructor use_ _init_ method called as constructor class studentdef __init__(self,rollno,name,age)self rollno=rollno self name=name self age=age print("student object is created" =student( ,"ajay", print("roll no of student", rollnoprint("name no of student", nameprint("age no of student", age