🔥 Learn Python with a more hands-on experience with Programiz PRO-interactive lessons, quizzes & challenges. Try Programiz PRO: bit.ly/right-python
@CreationTribe2 жыл бұрын
Gotta hand it to you - that was short, concise, and explained well. Thank you :)
@h44r96 Жыл бұрын
The perfect video on Iterators exists. Thanks for the video. New sub ✌️
@arish.fxtbl12 жыл бұрын
brother i m like 9 yr old and i only understand from ur concepts and video even not by my own father! thanks a lot... hats off to you
@pierrejacomet80983 жыл бұрын
Fantastic video. I like the cadence you use to teach the concepts. Kudos.
@alxcnwy3 жыл бұрын
Thanks for all your hard work - love your website and vids!
@BJGunners3 жыл бұрын
Hello, I am confused about the implementation of the custom iterator, you never used the __iter__ function to "initialize" the iterator as you would with the built in iter() function, and the custom __iter__ function doesnt return an iterator but an Even object. Also it compiled fine after removing the __iter__ function, i tought it was mandatory to have implemented the __iter__ function ? otherwise clear explanation
@iheartalgebra3 жыл бұрын
You are correct that the ___iter___ method was not called. However, in this case the ___iter___ method just returns self, so there no point in using it: the Even object is already an iterator. So what makes an object an iterator? From StackOverflow: "Being an iterator" means "having a __next__(self) method", which the Even object has.
@ComputerScienceSimplified3 жыл бұрын
Awesome video, keep up the amazing work! :)
@sandipansarkar92113 жыл бұрын
great explanation
@los47763 жыл бұрын
Had to download the mobile app after a quality video like this
@dileep24483 жыл бұрын
i have gone thru your website. its really nice.
@shivanandpatil33853 жыл бұрын
So easy and helpful ❤️ thank you so much ❤️
@htpps.Pratik11 ай бұрын
Thumbnail 🔥😆
@modinpatel81922 жыл бұрын
nice explaing bro
@javiervaldez4143 жыл бұрын
This it's a great explanation, you are amazing
@programizstudios3 жыл бұрын
Thank you! 😃
@adityabansod84932 жыл бұрын
Hello, thanks for the explanation. I have a question. In the "generators" video, you mention that the "return" statement destroys the state of the local variables whereas a yield keyword remembers the local variable state. When you instantiate an object of the class Even (numbers) in this video, and call next on this object, how does it remember the updated self.n value in the next call, if the return statement does not remember the state of the local variables? Thanks in advance.
@ananthsb39553 жыл бұрын
Superb
@patilvishu163 жыл бұрын
Thanks for this video.. very helpful..
@Mxdy_ Жыл бұрын
great vid, however I've a slight misunderstanding why do we return the result in the next function and not just return result * 2
@shyamazure3 жыл бұрын
Nice explanation
@pandathegeneral24263 жыл бұрын
You are just too good ;-;
@cesararturocastanonacuna33253 жыл бұрын
The mobile App is unbelievably amazing.
@luznoceda4233 жыл бұрын
Will you teach us about multi-threading or multi-processing? :D
@javascript24093 жыл бұрын
Every time new thigs avalabe this chhanel
@priyadangle2 жыл бұрын
hello there is a slight confusion in the init method the argument are two but while initializing it there is self.n?
@noweare12 жыл бұрын
in a loop can you just use enumerate ? for i , v enumerate(things) i will keep track of the loop counts
@aliasgar2153 жыл бұрын
with dir(numbers) we can see methods in a module. How to see the code of that method. Is there any way to see code of __iter__ method
@sasidharnaidu45072 жыл бұрын
U can't see the code using dir. For that u need to refer to official documentation. In python, most of the inbuilt functions r written using C.
@trinib13 жыл бұрын
a python god
@broyo20083 жыл бұрын
First here
@tommy9x3 жыл бұрын
Lost from self.n might need to to to Class lesson?
@yanskievl35202 жыл бұрын
Honestly i don't know how can i use this in my program.
@OnedayIwillbuyREHimalayan4003 жыл бұрын
Good explanation but you move your head alot
@DomUnseen3 жыл бұрын
left, right, left, right, left, right.... :D
@OnedayIwillbuyREHimalayan4003 жыл бұрын
@@DomUnseen Lol yh, it hurt head
@certifiedsmartass41222 жыл бұрын
Yeah and it annoys me. I cannot even look at the screen and focus when he talks. I mean turning left and right sometimes is fine, but the dude keeps doing it. Won't the cameraman say anything about it?