Interview Questions

How do I delete a file? (And other file questions...)

Python Questions and Answers


(Continued from previous question...)

How do I delete a file? (And other file questions...)

Use os.remove(filename) or os.unlink(filename);

(Continued on next question...)

Other Interview Questions