Python Programming - Generators - Discussion
Discussion Forum : Generators - General Questions (Q.No. 16)
16.
What is the purpose of the
itertools.islice()
function when used with generators?
Answer: Option
Explanation:
itertools.islice()
is used to slice a generator into specified ranges. It allows you to extract a portion of the generator's elements without consuming the entire sequence.
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