Example & Tutorial understanding programming in easy ways.

What is the Python Generator ?

A Generator is a kind of function which lets us specify a function that acts like an iterator and hence can get used in a "for" loop.

-We use yield keyword in generator instead using of return


def g():

    yield "It is a generator"


// output is It is generator

Read More →
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!