Skip to content
Advertisement

Python: How to pass output of the map function as arguments

I need to pass some arguments to the starmap_async function. I have a list my_list that has different values in it and some constants that are repeated. I have a way to pass the arguments as bellow:

JavaScript

It works and generates arguments like this which is the desired output:

JavaScript

Now I want to use the map function to do something like this:

JavaScript

but then I end up with arguments like this:

JavaScript

How can I fix that issue?

Advertisement

Answer

Try this:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement