1. 2 Puzzles to solve. I cannot remember the exact ones. 2. Write a python script to delete records older than 45 days in a folder.
Sigiloso
import os,sys,time path = input("Enter the path to delete files: ") stime = time.time() count = 0 for f in os.listdir(path): f = os.path.join(path, f) if os.stat(f).st_mtime < stime-45*86400: if os.path.isfile(f): print(f) os.remove(f) count+=1 print("Total files deleted are {}".format(count) )