In one of my previous articles, I briefly discussed the concept of Generator Expressions, in this one we are going to explore Generators in detail.
Before moving ahead, make sure you are familiar with some basic terms,
- Iteration is the process of repeating a block of code for a certain number of times.
- Iterable is an object which can be looped/iterated over.
- **Iterator**is an iterable object with a state.
- **Comprehension**is a way of writing the code in a short and concise manner.
#data-science #python #generator