branch "csedef read_student_details(selfrnon)#regdno and name are instance variables self __regdno rno #regdno is private variable self name def print_student_details(self)print("student regd no is"self __regdnoprint("student name is"self nameprint("student branch is"student branchs student( read_student_details(" pa ""ramesh" print_student_details(print( __regdno#this line gives error as ___regdno is private self argument the self argument is used to refer the current object (like this keyword in and javagenerallyall class methods by default should have at least one argument which should be the self argument the self variable or argument is used to access the instance variables or object variables of an object __init__(method (constructorthe __init__(is special method inside class it serves as the constructor it is automatically executed when an object of the class is created this method is used generally to initialize the instance variablesalthough any code can be written inside it syntax of __init__(method is as followsdef __init__(selfarg arg )statement statement statementn for our student classthe __init__(method will be as followsdef __init__(selfrnon)#regdno and name are instance variables self regdno rno self name __del__(method (destructorthe __del__(method is special method inside class it serves as the destructor it is executed automatically when an object is going to be destroyed we can explicitly make the __del__(method to execute by deleting an object using del keyword