Re: [Tutor] I am having difficulty grasping 'generators'

2014-05-28 Thread Degreat Yartey
This means that '...' should generally contain a manipulator then yield generates from where it stopped...*getting it* Thanks for the explanation though! Its seems so simple to digest. Thank you... On May 28, 2014 1:09 AM, "Danny Yoo" wrote: > On Tue, May 27, 2014 at 1

Re: [Tutor] I am having difficulty grasping 'generators'

2014-05-28 Thread Degreat Yartey
I am completely new to programming! On May 27, 2014 10:54 PM, "R. Alan Monroe" wrote: > > I need an explanation so simple as using the expression 'print ()', in > this case 'yield'. > > Python 2.6 here! > > Ever write any C programs with static variables? Generators can be > explained in those te

Re: [Tutor] I am having difficulty grasping 'generators'

2014-05-28 Thread Degreat Yartey
I really love this explanation... that means functions just run till it finishes its duty, then return...and generators just generate one at a time until the 'for' statement asks for __next__(). On May 28, 2014 8:37 AM, "Cameron Simpson" wrote: > On 27May2014 15:27, Degrea

[Tutor] I am having difficulty grasping 'generators'

2014-05-27 Thread Degreat Yartey
I am studying python on my own (i.e. i am between the beginner and intermediate level) and i haven't met any difficulty until i reached the topic 'Generators and Iterators'. I need an explanation so simple as using the expression 'print ()', in this case 'yield'. Python 2.6 here! Thank you. ___