# TutorSyntax reference solution | Working with text files
targets = ["Practise loops", "Revise lists", "Test functions"]
with open("targets.txt", "w", encoding="utf-8") as file:
    for target in targets:
        file.write(target + "\n")
with open("targets.txt", "r", encoding="utf-8") as file:
    print(file.read())
