Q. Which keyword is used to define a generator function in Python?
β
Correct Answer: (B)
yield
Explanation: The `yield` keyword turns a function into a generator, which can produce values one at a time.