Python Iterators and Generators Explained with Simple Examples

If you have worked with Python for some time, you have probably used iterators and generators without even thinking about them.