Python - File Handling Fundamentals
You want to append a dictionary's keys and values as lines to a file
data.txt in the format key:value\n. Which code snippet correctly does this?