Python - File Handling Fundamentals
How can you write a dictionary
data = {'a': 1, 'b': 2} to a file so that each key-value pair is on its own line in the format key:value?