Q. The following code is giving some error. Find out the error and write the corrected code.


d1 = {“a":1, 1:"a", [1, "a"]:"two"}


Answer:-

Data type of key is never list.
So, [1, "a"] is wrong.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post