Unexpected error keep showing


my code:

1 Like

Hi Shaan,

It does not seem to be the problem with your code. The same code works well in my case. Can you refresh your lab by going to ‘Help’ and then clicking on ‘Get latest version’? The ‘Help’ button is on the top right corner.

“Get latest version” only works to update missing files. So it won’t give you the newest version of a file you already have.

I think you may have an obsolete version of the w1_unittest.py file.
You can try deleting it (via the Files menu), and then use “Get latest version”.

Hi @Shaan_Manchanda

Maybe restart the kernel and clean all outputs work.