For Daily Free Study Material Join wiredfaculty Whatsapp Group | Download Android App | Ncert Book Download
Sponsor Area
Considering the following definition of class FACTORY, write a method in Python to search and display the content in a pickled file FACTORY.DAT,where FCTID is matching with the value '105'.
class Factory: def __init__(self,FID,FNAM): self.FCTID = FID # FCTID Factory ID self.FCTNM = FNAM # FCTNM Factory Name self.PROD = 1000 # PROD Production def Display(self): print self.FCTID,':',self.FCTNM,':',self.PROD