How do you delete a file?
A. del(fp)
B. fp.delete()
C. os.remove(‘file’)
D. os.delete(‘file’)
Answer:A
How do you delete a file?
A. del(fp) B. fp.delete() C. os.remove(‘file’) D. os.delete(‘file’)
Explanation: os.remove() is used to delete files.