Thursday, March 14, 2024

sequence unpack a dict

>>> a, b = {"a": 1, "b": 2}
>>> a
'a'

No comments:

Post a Comment