To-do list

Report a typo

Suppose you have the following TO-DO list:

to_do_list = ['Read an article', 'Outline the article', 'Implement an algorithm described in the article']

You want to pickle it and save the data to a separate to_do_list file with a protocol version of 5. Take a look at the code snippet below and detect which line is missing:

import pickle


file = open('to_do_list', 'wb')
...
file.close()

Write this missing line in the text field below.

Enter a short text
___

Create a free account to access the full topic