I'm returning 5 lists from a function in python, then I'm defining another function as such:
def excel_parser(list_titles, list_links, list_prices, num_elem_titles, num_elem_link):
I then call the function and I tried everyway, this is the only one that gives a result, but the lists get emptied, they instead contain items in them.
excel_parser(list_titles=[], list_links=[], list_prices=[], num_elem_titles=[], num_elem_link=[])
This is how I use the functions inside the second function:
print(len(list_titles))
row = 3
for line in list_titles:
if row <= num_elem_titles:
Foglio_Annunci["B" + str(row)] = line
row += 1
row = 3
for line in list_links:
if row <= num_elem_link:
Foglio_Annunci["C" + str(row)] = line
row += 1
row = 3
for line in list_prices:
if row <= num_elem_link:
Foglio_Annunci["D" + str(row)] = line
row += 1
row = 3