Python Programming - Generators - Discussion
Discussion Forum : Generators - General Questions (Q.No. 52)
52.
How does the
generator.__next__()
method differ from next(generator)
when used with a generator?
Answer: Option
Explanation:
generator.__next__()
and next(generator)
are equivalent methods for getting the next value from a generator.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers