human
Python: convert list to generator
assistant
Here is some code to convert a list  into a generator object

(n for n in [1, 2, 3, 5])

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