What are Python Iterators and Iterables | How to create a custom Iterator |Python Interview Question

preview_player
Показать описание
What are Iterators in Python? What do you mean by Iterables?
Can you create a custom Iterator class?
How do Iterators work actually?

These questions have been asked in all the Python Interviews that I have attended till now. So, in this tutorial
we will be discussing about Python Iterators in depth. Hope it will help you guys in your own Python developer journey.

Topics covered in this tutorial:
- What are Iterables in Python
- What is Unpacking, Enumerating in brief
- What are Iterators
- Iterator code examples
- Creating a custom iterator
- How for loops work for Iterables
- Advantages of using iterators

The Notebook for this tutorial:

Python Interview question series:

Connect with me on LinkedIn:

Timestamps:
0:00 - Introduction
1:22 - Topics covered
2:05 - What are Iterables in Python?
4:10 - Unpacking Iterables code example
5:37 - Enumerating Iterables code example
7:02 - What is an Iterator?
8:38 - Iterator Code example
11:44 - Some important points about Iterators
13:51 - Creating a custom Iterator
20:00 - How for loops work
22:32 - Advantage of using Iterators

Please like the video and subscribe if you found this useful.
Рекомендации по теме
Комментарии
Автор

Thank you for a very informative playlist. Your videos helped me a lot in my preparations. Kindly post video on Generators in python

agalyakandasamy
Автор

please post more videos in this playlist

pratikanandpara
Автор

I'm currently tcs Ninja with one year bond joined in December.
If i get into digital what will be the bond.?
I mean I'm interested in machine learning so planning to do Applied AI course which help me in gaining new job with better package.
So if there is no bond for digital I'll work hard for digital or else I'll concentrate on machine learning and python .
Also please give me a suggestion brother like whether I should try for tcs digital or should concentrate on applied AI(I'm good in visualising maths got some experience in exploratory data analysis, NLP( bag of words, w2v, Tfidf), classification algo knn, logistic and linear regression model, PCA, T-SNE. so interested in machine learning). 🙏

mbmb
join shbcf.ru