I have a function that has two arguments that are both lists as shown below
def myfunc(arg1, arg2):
return arg1*arg2
arg1 = [1,2,3,4]
arg2 = [10,9,8]
I want to return a list of each possible PERMUTATION of the two arguments.
So the result should be something like:
[10,9,8,20,18,16.......]
I believe this isn't possible with maps and zip as they would return something like:
[10,18,24]
Is there any easy way to get this done without having to write out the arguments manually?
P.s: I'm using a placeholder function in my example, so i definitely need a way to pass the two lists as arguments