DXC Technology interview question

Define iterators and generator in python.