Code error in "Solution"

I was doing a lab on Python and entered my code, received an error, looked at solution and saw no difference in the code, copy pasted solution into the executable block and received the same error

how can I proceed with understanding the code/language when the provided solution causes an error, the same error my code provided?

It seems likely that set was, well, set to a value in an earlier cell, overloading the built-in set.

Restarting the kernel and re-running the cells might help.

Another helpful tool is the Contextual Help, which can be shown from the Command Palette (opened from the View menu, or via the keyboard ctrl+shift+c), which will update with inspection information based on the position of the cursor.

1 Like

thank you i will try that and see what happens.