How to get one value at a time from a generator function in Python? November 23, 2022 by Tarik Yes, or next(gen) in 2.6+.