Question 6

Last Updated :
Discuss
Comments

You want to delete a non-empty folder named old_data. What function should you use?

os.rmdir("old_data")

os.remove("old_data")

shutil.rmtree("old_data")

os.delete("old_data")

Tags:
Share your thoughts in the comments