Перейти к содержимому

Python Iterator Practice in Python | StepRange, Fibonacci & Cycle Iterator

A.Kr.M.

0:00 / 0:00

Python Iterator Practice in Python | StepRange, Fibonacci & Cycle Iterator

6 просмотров · 1 месяц назад
A.Kr.M.
6 просмотров · 1 месяц назад
In this video, I work through Python iterator practice problems 6 to 8, focusing on building custom iterators using __iter__() and __next__(). 🐍 Problems covered: Q6: StepRange iterator with custom positive and negative steps Q7: Fibonacci iterator using __next__() Q8: Cycle iterator that continuously loops through a list This is part of my ongoing Python learning journey where I solve problems, make mistakes, and work through the logic instead of jumping straight to the solution. 📂 Complete questions & code GitHub: https://github.com/AneeshkrMoury/Pyth... The complete set of questions is available in the GitHub repository along with my practice code. Topics covered: Python Iterators _iter_ _next_ StopIteration Fibonacci Custom Iterators Cycle Iterator #Python #PythonProgramming #PythonLearning #Iterators #CodingJourney