I ran the following in the python3
interpreter:
>>> d = dict( a=1, b=2 )
>>> [v for k,*v in d.items()]
[[1], [2]]
Why does using the star operator in this context cause each value to get wrapped in a list
?
I ran the following in the python3
interpreter:
>>> d = dict( a=1, b=2 )
>>> [v for k,*v in d.items()]
[[1], [2]]
Why does using the star operator in this context cause each value to get wrapped in a list
?