#62 Python Tutorial for Beginners | Generators

///#62 Python Tutorial for Beginners | Generators

#62 Python Tutorial for Beginners | Generators

FavoriteLoadingAdd to favorites

Github :-

source

By |2020-09-29T09:46:43+00:00September 29th, 2020|Python Video Tutorials|46 Comments

46 Comments

  1. Durgaprasad Sriramoji September 29, 2020 at 9:46 am - Reply

    We normally fetch the records in a cursor then loop thru and process one record at a time rt? Yes, we are fetching 1000 records into memory with the cursor, we can overcome this with Generators is what you mean? little confusion , someone pls clarify

  2. sheikh jebran September 29, 2020 at 9:46 am - Reply

    Awesome

  3. Creative Mind September 29, 2020 at 9:46 am - Reply

    Excellent explanation.. Thanku..

  4. vihal rao September 29, 2020 at 9:46 am - Reply

    can we use genrator inside the class ? if yes anyone explain me with example?

  5. balireddy yerabham September 29, 2020 at 9:46 am - Reply

    SUPER SIR

  6. Aritro Das September 29, 2020 at 9:46 am - Reply

    Can we write this statement instead of the while loop?
    for i in range (1,11):
    sq=i*i
    yield sq

  7. Vidit Jain September 29, 2020 at 9:46 am - Reply

    You said that Generators do not work in methods but do in functions, which means it can not be made in a class, but, i actually did it and that to in a static method inside of a class.

  8. Imran Shaikh September 29, 2020 at 9:46 am - Reply

    Awesome sir very nice. I am following python series from the very beginning and will go till the End

  9. 1SI19IS026 K S ARAVINDA KASHYAP September 29, 2020 at 9:46 am - Reply

    I didn't get the difference between this iterator and generator.. Can anyone help me out with this!!!!

  10. Anil Kumar September 29, 2020 at 9:46 am - Reply

    informational video, but the music at the start and end irritates. overall it's a nice video… thanks

  11. Victor Wang September 29, 2020 at 9:46 am - Reply

    you are so cool, can I be your friend?

  12. brandon tan September 29, 2020 at 9:46 am - Reply

    5:10

    So an iterator fetches all items in a sequence first?

  13. Marcin Rydelski September 29, 2020 at 9:46 am - Reply

    Great work, addicted to watching your explanations! 🙂

  14. Hmadry A September 29, 2020 at 9:46 am - Reply

    Eeeeeld = yield ?!
    which means
    Eellow = yellow

  15. Madhur Sharma September 29, 2020 at 9:46 am - Reply

    Why not class?

  16. Vivek Wadhwa September 29, 2020 at 9:46 am - Reply

    As per example the data came at once for all, so how do we differentiate between iterator and generator.

  17. Demigod September 29, 2020 at 9:46 am - Reply

    just awesome sir <3

  18. Programmer September 29, 2020 at 9:46 am - Reply

    I discovered your channel recently and I've been enjoying your good work. Please keep it up.

  19. Krishnan Sathiyanarayanan September 29, 2020 at 9:46 am - Reply

    I am studying 11th standard. I don't know whether genetators are there in 11th portion. Please reply whether these portions are there for me.

  20. Dhairya Shah September 29, 2020 at 9:46 am - Reply

    why can't we use a for loop here instead of while loop? pls explain

  21. Phan Anh September 29, 2020 at 9:46 am - Reply

    what 's an explanation, pretty excellent!

  22. dikshant gupta September 29, 2020 at 9:46 am - Reply

    why we have to write 15-16 of code just to print 1–10 values. this can be easily done with the help of loops

  23. simarjit kaur September 29, 2020 at 9:46 am - Reply

    you are amazinggggggggggggggggggggggggggggg

  24. Amir Riaz September 29, 2020 at 9:46 am - Reply

    the best explanation on the internet. good job

  25. First To use September 29, 2020 at 9:46 am - Reply

    +++ when use yield the MAIN value of the function will be the one that assigned to yield (sq)
    +++when ask for the function (which main value of it is the one that assigned to yield because of yield effect) will give you the next value of the variable that assigned to yield (sq) and that was the main two features of yield

  26. Aman Dev September 29, 2020 at 9:46 am - Reply

    this course is best ,ultimate best

  27. EC-D-4K1 Venkat September 29, 2020 at 9:46 am - Reply

  28. Warries Amd September 29, 2020 at 9:46 am - Reply

    if i replace yield using return then the code is failing – 'int' object is not iterable – pls stat whats issue here

  29. Pavan Talam September 29, 2020 at 9:46 am - Reply

    Hi,

    I have two generators. Say

    gen1 holding values like

    {'id': 1,'ref_no': 4323453536, 'amt': 678.00, 'txn_'date': '12-11-2019}
    .
    .
    .
    {'id':10000000 , 'ref_no':8523118426, 'amt':98788.00, 'txn_'date': '12-11-2019}

    gen2 holding values like

    {'ref_no': 4323453536, 'acc_no': 123456789, 'amt': 98789.00}
    .
    .
    .
    {'ref_no': 8523118426, 'acc_no': 123456789, 'amt': 45654567.00}

    I want to search ref_no of gen1 in ref_no of gen2. If ref_no matches I want to get the acc_no, amount from gen2.

    Please help me in how to search. I want to improve the performance as I am having millions of records.

    Please help me in this.

  30. Rajeev Singh Rajput September 29, 2020 at 9:46 am - Reply

    I am grateful to you sir….
    Very Nice teaching sir………..

  31. Saurabh Tripathi September 29, 2020 at 9:46 am - Reply

    thanks

  32. Pulkit Mehta September 29, 2020 at 9:46 am - Reply

    Very well explained . Thanks.

  33. Moiz Rehman September 29, 2020 at 9:46 am - Reply

    print("sir you looks good in mustache and you teaching method() is also very impressive")

  34. Karthik September 29, 2020 at 9:46 am - Reply

    you are looking like shikhar dhawan

  35. Youcef Yip September 29, 2020 at 9:46 am - Reply

    Thank you sir for this informative video, subscribed

  36. R K September 29, 2020 at 9:46 am - Reply

    superb

  37. Sai prasad September 29, 2020 at 9:46 am - Reply

    Thank you Naveen Reddy Sir for your series on python..It helped me to learn in an easy manner …Thank you so much

  38. ck3908 September 29, 2020 at 9:46 am - Reply

    Thank u Sir!

  39. Nikhil Goel September 29, 2020 at 9:46 am - Reply

    In my code instead of _next_() next() is working…..

  40. Adarsh Kumar Pandey September 29, 2020 at 9:46 am - Reply

    videos are getting very much interesting as we go towards the end of the course…thankyou sir !!

  41. Chhavimani Choubey September 29, 2020 at 9:46 am - Reply

    def table():

    n = int(input('enter value to find table of it:'))

    itt = 1

    while itt <= 10:

    t = n * itt

    yield t

    itt += 1

    values = table()

    for i in values:

    print(i)

    i created table finder using generator

  42. nithin mamidala September 29, 2020 at 9:46 am - Reply

    hi..is it really necessary to have a knowledge on full python for data science..

  43. ROHIT gaming September 29, 2020 at 9:46 am - Reply

    great

  44. Sarita Devi September 29, 2020 at 9:46 am - Reply

    sir please make a video on how to make a website using python. we expect that… . many people are already teaching to make a website but no one good for nothing .because they are not reliable we rely on you.

  45. Sarita Devi September 29, 2020 at 9:46 am - Reply

    good job

  46. CoderFlow September 29, 2020 at 9:46 am - Reply

    Which ide you are using

Leave A Comment

*