Good Afternoon
16:08 pm

Sponsor Area

Sponsor Area

Question is

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

Mock Test Series

Sponsor Area

Sponsor Area

NCERT Book Store

NCERT Sample Papers

Entrance Exams Preparation