Iterators That Terminate

Learn about finite iterators in this lesson.

Most of the iterators that we create with itertools are not infinite. In this lesson, we will be studying the finite iterators of itertools. To get output that is readable, we will be using Python’s built-in list type. If we do not use list, then we will only get an itertools object printed out.

Get hands-on with 1200+ tech skills courses.