Multiple Choice
Assume that the customer file references a file object, and the file was opened using the 'w' mode specifier. How would you write the string 'Mary Smith' to the file?
A) customer_file.write('Mary Smith')
B) customer.write('w','Mary Smith')
C) customer.input('Mary Smith')
D) customer.write('Mary Smith')
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: Python allows the programmer to work with
Q11: A(n) _ includes one or more statements
Q13: The term _ file is used to
Q16: In Python,there is nothing that can be
Q16: Which mode specifier will erase the contents
Q17: Which of these is associated with a
Q18: What type of file access jumps directly
Q21: If a file with the specified name
Q25: When a program needs to save data
Q29: A(n)_ file contains data that has not