#61 Python Tutorial for Beginners | Iterator

preview_player
Показать описание

Check out our courses:

Coupon: TELUSKO10 (10% Discount)

Coupon: TELUSKO10 (10% Discount)

Coupon: TELUSKO10 (10% Discount)

Coupon: TELUSKO20 (20% Discount)

Udemy Courses:

For More Queries WhatsApp or Call on : +919008963671

Рекомендации по теме
Комментарии
Автор

In pycharm you can use (control + d) to copy the line and paste it onto the next in the place of using (ctrl + c) and (ctrl + v).

sohailanwar
Автор

I really Want to thank you Navin Sir..My college faculty never focus on the concepts of programming they are just making us rattutota... Thank you so much sir for coming on youtube and helping the students

divyanshusingh
Автор

print(next(values)) prints 1 and also changes the state of the iterator after which num = 2. So the for loop will print the numbers from 2 to 10.

jimmymesa
Автор

The raise keyword is used to raise an exception. You can define what kind of error to raise(here its StopIteration).

swethasundaram
Автор

Sir, when will you make videos on tikinter and other python GUI?

Shrishivbharat
Автор

sir can you put another vedio on this. i dint understand completely.

sriram
Автор

whether during the creation of the object itself __iter__() method is called just like __init__() method?
Is __iter__() method is called only once?

utpalpodder-pkvq
Автор

omg you are a true programmer :D i lauoh so hard when the output print None. i like you debuging method

adilbougma
Автор

I just debug and found how that statement for i in values just calls the next function in Topten class, every time after printing the value of i . This is awesome . You should include a debug session in this video itself.

chandrasekar
Автор

Sir,
Why can't we use break in else part to stop the execution of for loop ?

harshamin
Автор

ಸರ್...ನಿಮ್ಮ teaching ನನಗೆ ಬಹಳ ಇಷ್ಟ. ಈ videoಇಂದ ನನ್ನ ಎಲ್ಲಾ doubtಗಳು clear ಆದವು. ಧನ್ಯವಾದಗಳು.

సర్...మీరు teaching నాకు చాలా ఇష్టం. ఈ video నుండి నా అన్ని doubtలు clear ఆయింది. ధన్యవాదలు.

ಜೈ ಕರ್ನಾಟಕ (జై కర్నాటక)!!
ಜೈ ಕನ್ನಡ (జై కన్నడ)!!

anuragrsimha
Автор

and instead of giving exception in else part can we give break statement at the end of if statement?

pinakibhattacharya
Автор

I really want to Thank you Sir for all the efforts and also for your nice energy, I hope that you still have this awsome energy and vibes, God bless you !!!

zakiasmaa
Автор

Sir can you please create video on data structure and algorithm

HackingWithCoffee
Автор

Can someone or Navin tell me this that why are we not converting that TopTen class object 'values' to iterator object i.e like values = iter(values)
As you are not creating iterator object in last example how is __iter__ method getting called or how is it working without it.
As far as i know if we create an object of class only init method gets performed without calling.
Please Help me with this.
And Cheers to your work Navin.
Thank you very much

omkarmore
Автор

Under the def __iter__() method, why are we returning self only? And what does he mean by 'returning the object' when using this method? It's just a self keyword with no parameters. What does this mean? Please help

ryouko
Автор

I'm confused. Couldn't we just print "nums" to output the values? Why did we need a "for" statement to display all 4 values?

KoreanPanda
Автор

What is the use of iterator while we have a for loop and we can go for a every element of the list....

pradeepmedikonda
Автор

concept is extremely good no doubt on that, but your new look does not matching with
but really your teaching style is awesome, thank god that you are providing such valuable knowledge with free of cost...

Bhabani
Автор

this we can use for interview question but for loop is the best. I haven't used this loop in my entire life

mohamednayeem