with open("new.txt") as f: with open("old.txt", "w") as f1: for line in f: f1.write(line)# your code goes here
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 1, in <module> FileNotFoundError: [Errno 2] No such file or directory: 'new.txt'