def findType(mtype):
f=open("cinema.dat","rb")
d=pickle.load(f) #for eg s={1: ['DDLJ', 'suspense'], 2: ['gupt', 'thriller'], 3: ['bagban', 'family']}
for k,v in d.items():
if v[1]== mtype:
print("Movie Number : {} Movie Name : {} Movie Type : {}".format(k,v[0],v[1]))
f.close()
movietype=input("Enter a type : ")
findType(movietype)
import _______ #Statement 1
def update_data():
rec={}
fin=open("record.dat","rb")
fout=open("_____________") #Statement 2
found=False
eid=int(input("Enter employee id to update their salary :: "))
while True:
try:
rec=______________ #Statement 3
if rec["Employee id"]==eid:
found=True
rec["Salary"]=int(input("Enter new salary :: "))
pickle.____________ #Statement 4
else:
pickle.dump(rec,fout)
except:
break
if found==True:
print("The salary of employee id ",eid," has been updated.")
else:
print("No employee with such id is not found")
fin.close()
fout.close()
(i) Which module should be imported in the program? (Statement 1)