Which of the following commands is used to write the list L into the binary file, STUDENT.DAT? (marked as #2 in the Python code)
A. pickle.write(L,f)
B. pickle.write(f, L)
C. pickle.dump(L,F)
D. f=pickle.dump(L)
Answer:C
Which of the following commands is used to write the list L into the binary file, STUDENT.DAT? (marked as #2 in the Python code)
A. pickle.write(L,f) B. pickle.write(f, L) C. pickle.dump(L,F) D. f=pickle.dump(L)