I have a function which needs to take two parameters like so
list_of_ids = [1,2,3]
list_of_names = [bob, joe, frank]
def function(id, name):
The function arguments come from those two arrays. So when it's called each time it will be like:
def function(1, bob)
def function(2, joe)
def function(3, frank)
I've tried a couple of for loops like so:
for id in list_of_ids:
for name in list_of_names:
function(id, name)
However this is not giving me the desired result. Any help will be appreciated.