Python Programming - Generators - Discussion
Discussion Forum : Generators - General Questions (Q.No. 66)
66.
What is the purpose of the
itertools.accumulate()
function when used with generators?
Answer: Option
Explanation:
itertools.accumulate()
generates the cumulative sum of elements in the generator, creating an iterator that yields the accumulated results.
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