dellete file in python

Solutions on MaxInterview for dellete file in python by the best coders in the world

showing results for - "dellete file in python"
Leah
08 Sep 2016
1
2import os
3if os.path.exists("demofile.txt"):
4	os.remove("demofile.txt")
5else:
6	print("The file does not exist") 
similar questions
queries leading to this page
dellete file in python