Is it possible to use a single data structure to pass into a function with multiple arguments? I'd like to do something like the following but it doesn't appear to work.
foo_bar = (123, 546)
def a(foo, bar):
print(foo)
print(bar)
Is it possible to do something like the following:
a(foo_bar)
instead of:
a(foo_bar[0], foo_bar[1])
What is the pythonic way of doing this?