A

Admin • 833K Points
Coach

Q. How to delete a file in Python?

  • (A) file.delete()
  • (B) os.remove()
  • (C) removefile()
  • (D) os.delete()
  • Correct Answer - Option(B)
  • Views: 35
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

os.remove() is used to delete a file from the system.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.