Course 2 week 2 programming assignments

while running my codes it shows me ‘key error:W3’ in all cells but I haven’t used ‘W3’ not in my single cell. what to do?

Hi @Mohamed_Nooh13,

Can you share your lab ID with me ? In the assignment, when you click the top right “Help” button, a panel will open and your lab ID will be shown at the bottom.

I shall take a look.

When you reply back, kindly tag me in the post so that I’m notified.


But the template code that is given to you uses constructs like “W + str(l)” to construct the dictionary keys, right? Please show us the actual exception trace that you are getting: just “copy/paste” the output of running the failing cell into your reply. Just be careful to use the “</>” tool on it, so that it formats correctly without being interpreted as “markup”.