[Fixed]-Saving search results as text instead of list

1👍

you should join the returned list using the comma separted values. This will return the string.

returns = ', '.join(returned_items)

0👍

This piece of code is setting returns to a list:

returns = returned_items[:]

If you want to access the first string, set it to returned_items[0]. If you want to join all strings in the list, use join()

returns = "".join(returned_items)
👤TheGRS

Leave a comment