Jak skopiować elementy pliku tekstowego do innego pliku tekstowego Python

with open("test.txt") as f:
    with open("out.txt", "w") as f1:
        for line in f:
            f1.write(line)
Shanti