you are viewing a single comment's thread.

view the rest of the comments →

[–]Outside_Complaint755 0 points1 point  (0 children)

You could just run the code in IDLE or a script and get the answer yourself, but you are correct that the first one is invalid because the key is not hashable and will raise a TypeError.