defining class in python (contd here is class with user-supplied init (this method is automatically invoked to initialize the state of the instance returned by call to person()class person class persondef __init__(selfa_namean_age )self name a_name self age an_age end of class definition #test codea_person person"zaphod" print(a_person nameprint(a_person agepurdue university zaphod