print("creating an empty document named 1.txt, copying it as 2.txt, deleting 1.txt, and closing this example") os.execute("echo \"!\" > 1.txt") os.execute("cp 1.txt 2.txt") os.remove("1.txt")