def myfunc(x, y, z): print(x, y, z) tuple_vec = (1, 0, 1) dict_vec = {'x': 1, 'y': 0, 'z': 1} myfunc(*tuple_vec) # Output # 1, 0, 1 myfunc(**dict_vec) # Output # 1, 0, 1