I just started using python seriously, and every time I have a question, my go to guy is Jeff Knupp. He’s incredible.
I bought his book, Writing Idiomic Python a few days ago and I hope it’ll help the transition from C# to python to be as smooth as possible.
Anyway, Here’s an excellent article by Jeff that explains how python generators work.