Iterators and Iterables in Python (How for Loop Actually Works?) #28

Iterators and Iterables in Python (How for Loop Actually Works?) #28

Programiz

3 года назад

37,625 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@h44r96
@h44r96 - 14.07.2023 14:29

The perfect video on Iterators exists. Thanks for the video. New sub ✌️

Ответить
@Mxdy_
@Mxdy_ - 19.06.2023 01:15

great vid, however I've a slight misunderstanding why do we return the result in the next function and not just return result * 2

Ответить
@CreationTribe
@CreationTribe - 19.11.2022 00:14

Gotta hand it to you - that was short, concise, and explained well. Thank you :)

Ответить
@cic6438
@cic6438 - 08.10.2022 20:51

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

Ответить
@adityabansod8493
@adityabansod8493 - 03.09.2022 04:13

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.

Ответить
@modinpatel8192
@modinpatel8192 - 09.05.2022 07:48

nice explaing bro

Ответить
@noweare1
@noweare1 - 11.04.2022 02:31

in a loop can you just use enumerate ? for i , v enumerate(things) i will keep track of the loop counts

Ответить
@priyadangle
@priyadangle - 09.03.2022 19:25

hello there is a slight confusion in the init method the argument are two but while initializing it there is self.n?

Ответить
@yanskievl3520
@yanskievl3520 - 01.02.2022 07:34

Honestly i don't know how can i use this in my program.

Ответить
@dileep2448
@dileep2448 - 30.12.2021 10:51

i have gone thru your website. its really nice.

Ответить
@los4776
@los4776 - 19.11.2021 14:41

Had to download the mobile app after a quality video like this

Ответить
@OnedayIwillgetREHimalayan
@OnedayIwillgetREHimalayan - 05.11.2021 04:44

Good explanation but you move your head alot

Ответить
@tommy9x
@tommy9x - 15.09.2021 14:18

Lost from self.n might need to to to Class lesson?

Ответить
@aliasgar215
@aliasgar215 - 08.08.2021 07:50

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

Ответить
@patilvishu16
@patilvishu16 - 18.07.2021 14:11

Thanks for this video.. very helpful..

Ответить
@cesararturocastanonacuna3325
@cesararturocastanonacuna3325 - 15.06.2021 05:08

The mobile App is unbelievably amazing.

Ответить
@alxcnwy
@alxcnwy - 21.05.2021 12:07

Thanks for all your hard work - love your website and vids!

Ответить
@shivanandpatil3385
@shivanandpatil3385 - 17.05.2021 19:21

So easy and helpful ❤️ thank you so much ❤️

Ответить
@pandathegeneral2426
@pandathegeneral2426 - 01.05.2021 19:58

You are just too good ;-;

Ответить
@pierrejacomet8098
@pierrejacomet8098 - 02.04.2021 22:54

Fantastic video. I like the cadence you use to teach the concepts. Kudos.

Ответить
@BJGunners
@BJGunners - 02.03.2021 17:24

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

Ответить
@javiervaldez414
@javiervaldez414 - 09.02.2021 08:15

This it's a great explanation, you are amazing

Ответить
@shyamazure
@shyamazure - 05.02.2021 15:24

Nice explanation

Ответить
@sandipansarkar9211
@sandipansarkar9211 - 04.02.2021 10:36

great explanation

Ответить
@luznoceda423
@luznoceda423 - 03.02.2021 08:11

Will you teach us about multi-threading or multi-processing? :D

Ответить
@ComputerScienceSimplified
@ComputerScienceSimplified - 28.01.2021 02:53

Awesome video, keep up the amazing work! :)

Ответить
@trinib1
@trinib1 - 27.01.2021 21:30

a python god

Ответить
@ananthsb3955
@ananthsb3955 - 27.01.2021 18:34

Superb

Ответить
@javascript2409
@javascript2409 - 27.01.2021 14:39

Every time new thigs avalabe this chhanel

Ответить
@broyo2008
@broyo2008 - 27.01.2021 14:17

First here

Ответить