Human: Writing a list to a file with Python Assistant: 
Here is some code to writing items in list `itemlist` to file `outfile`

outfile.write('\n'.join(itemlist))

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