A

Admin • 833K Points
Coach

Q. Which keyword is used to create a generator function?

  • (A) yield
  • (B) return
  • (C) generate
  • (D) func
  • Correct Answer - Option(A)
  • Views: 24
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`yield` is used inside functions to make them generators.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.