Iterators are mostly used for travelers in the object in python framework implementing iterator protocol.

This comprises of two methods which are-

  • __iter__()
  • next ()
BY Best Interview Question ON 14 Sep 2019