I'm aware I can assign multiple variables to multiple values at once with:
(foo, bar, baz) = 1, 2, 3
And have foo = 1, bar = 2, and so on.
But how could I make the names of the variables more dynamic? Ie,
somefunction(data,tupleofnames):
(return that each name mapped to a single datum)
somefunction((1,2,3),(foo,bar,baz))
And have the same?