πŸ“Š Python
Q. Which of these keywords is used to create a generator?
  • (A) gen
  • (B) return
  • (C) yield
  • (D) generate
πŸ’¬ Discuss
βœ… Correct Answer: (C) yield

Explanation: `yield` is used to return values one at a time from a generator function.

Explanation by: Mr. Dubey
`yield` is used to return values one at a time from a generator function.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
45
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
86%
Success Rate