Exam Questions-CBSE12A-2019-B04C-C2 #PYTHON#7158
Problem Statement - B04C-2019S-C2
Considering the following definition of class DOCTORS, write a method/function SPLDOCS() in python to search and display all the content from a pickled file DOCS.DAT, where Specialisation of DOCTORS is “CARDIOLOGY”.
class DOCTORS: def __init__(self,N,S): self.Name=N self.Specialisation=S def Disp(self): print self.Name, "#", self.Specialication
CSKC| Created: 11-Apr-2019 | Updated: 11-Apr-2019|CBSE12A-2019