Core: learn it Step 7 of 16 on the Python Developer roadmap
Reading and writing files
Open files with with open('notes.txt') as f: so they close automatically when you are done. Practise reading line by line, writing new files and appending to existing ones.