Exercise: Pull values out with next()

Calling a generator function returns a generator object. next() asks it for one value at a time. Use next() twice on g and put the second value into result.
Python
Setting up Python environment...
Output