I'm trying to call a function with parameter from a list of list, the problem is that it sees the whole list as one single argument, even though each list in the list of lists contains 3 arguments. How do I get the function to see the list as 3 arguments
lists = [[1, 2, 3], [4, 5, 6], [7, 8, 9], [2, 5, 8]]
def do_something(x, y, z):
bla. bla. bla
do_something(lists[1])
and the error message says so:
TypeError: do_something() missing 2 required positional arguments: 'y' and 'z'