Rajanikant Hawaldar
What does the “yield” keyword do?

What does the “yield” keyword do?

By Rajanikant Hawaldar in Python on Sep 27 2020
  • Pranam Bhat
    May, 2021 27

    yield is a keyword in Python that is used to return from a function without destroying the states of its local variable and when the function is called, the execution starts from the last yield statement. Any function that contains a yield keyword is termed as generator.

    • 1


Most Popular Job Functions


MOST LIKED QUESTIONS