class father(grandfather)fathername "def father(self)print(self fathernamederived class class son(father)def parent(self)print("grandfather :"self grandfathernameprint("father :"self fathernamedriver' code son( grandfathername "srinivass fathername "ankushs parent(outputgrandfather srinivas