Generator « Buildin Function « Python






1.Fibonacci sequences using generatorsFibonacci sequences using generators
2.yield statement: defining a generator function,yield statement: defining a generator function,
3.yield statement works with for loopyield statement works with for loop