rubicminer rubicminer
  • 03-07-2021
  • Computers and Technology
contestada

What is the usage of "yield" in python?

Respuesta :

sithmihimalsha4 sithmihimalsha4
  • 09-07-2021

Answer:

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 a generator. Hence, yield is what makes a generator.

Explanation:

Answer Link

Otras preguntas

what is the correct definition of suffrage
It seems that the vice president has broken some laws. What can be done about the situation?
How could you safely determine if a base is stronger than an acid?
advantages and disadvantages of solar energy
examples of prime numbers
the four forces shown have the same strength. which force would be most effective in opening the door?
Which of the following BEST describes the concept behind Web 2.0? Download Write Read-write Upload
how to make your period come faster
how many tectonic plates are there
law of conservation of energy