Computer Science, asked by rajdeo8052, 2 months ago

What is 'yeild' term in python ? Give its explanation with example.

Answers

Answered by ritika123489
1

Explanation:

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.

Answered by ashokdew73
0

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

please mark as brainlist

Similar questions