human
How to convert a tuple to a string in Python?
assistant
Here is some code to convert a list of tuples `queryresult` to a string from the first indexes.

emaillist = '\n'.join([item[0] for item in queryresult])

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.