print("creating an empty document named 1.txt, renaming it to 2.txt, and closing this example") os.execute("echo \"!\" > 1.txt") os.rename("1.txt","2.txt")