Python program to delete a specified file from Computer
Solution
import os fname=input("Enter the File Name : ") os.remove(fname) print("file deleted")
Output/ Explanation: