Skip to main content

Sequences

Infinite Sequences in Python - Impressive Fibonacci
·1024 words·5 mins
Python Sequences Drops Fibonacci Itertools Islice
Did you know that you can create an infinite sequence without having memory problems and still consume this sequence in any way you want? Today we will see a specific function of the itertools standard library module, the islice, and see how can it be used to create the Fibonacci infinite sequence in Python.