Please pay attention to Course and Week number when posting (this is C1 W1 question) in order to not confuse others.
The problem with the code is that you define a pair
as a dictionary (with {...}
) and not as a tuple (with (...)
) as per instruction:
# define the key, which is the word and label tuple
Also, please remove your solution code if you do not have further questions.
Cheers!
Thanks for correcting me.