I am using an api to collect data using multiple inputs. I used a for loop to make multiple api requests by iterating through the input values that i already declared . The api call was made using a user defined function. Here response_1 is the inputs of the api call.
for auto_sort in response_1:
countryname= auto_sort['Country']
iso=auto_sort['ThreeLetterSymbol']
response_3= api_call(countryname,iso)
I am getting the function output as a list of dictionary with each iteration.
I want to save each iteration output individually or combine all the iterations (lists) into one list.
Need help figuring out how this can be done or basically how can i handle the function output in this case. I am able to access the most recent iteration