Skip to content

ይህ ትምህርት ገና ወደ አማርኛ አልተተረጎመም፤ ስለዚህ በእንግሊዝኛ ቀርቧል። የእንግሊዝኛውን ገጽ ክፈቱ

Writing an iterator class

በቅርቡ

Build stateful iterator classes by implementing __iter__ and __next__.

You'll be able to

  • Implement the __iter__ and __next__ dunder methods
  • Maintain iteration state across calls
  • Raise StopIteration when sequences are exhausted

በቅርቡ

This lesson is being written. It will be free here, like every lesson. The Telegram channel announces new lessons as they open.