On Wed, Apr 20, 2022 at 2:23 PM Abdur-Rahmaan Janhangeer
<arj.pyt...@gmail.com> wrote:
>
> Greetings list,
>
> Using Python3.9, i cannot assign a list [1, 2] as key
> to a dictionary. Why is that so? Thanks in advanced!

Dict keys cannot be mutable. Use a tuple instead.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to