B04C-2019S-C2 – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  

Login
[lwa]



Exam Questions-CBSE12A-2019-B04C-C2 #PYTHON#7158    siteicon   siteicon  

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

 

Solution

TC++ #7158


Share

CSKC| Created: 11-Apr-2019 | Updated: 11-Apr-2019|CBSE12A-2019









Back