📊 Problem Solving and Python Programming
Q. )) type(g)
  • (A) class <’loop’>
  • (B) class <‘iteration’>
  • (C) class <’range’>
  • (D) class <’generator’>
💬 Discuss
✅ Correct Answer: (D) class <’generator’>

Explanation: another way of creating a generator is to use parenthesis. hence the output of the code shown above is: class<’generator’>.


Explanation by: Mr. Dubey
another way of creating a generator is to use parenthesis. hence the output of the code shown above is: class<’generator’>.

💬 Discussion

📊 Question Analytics

👁️
422
Total Visits
📽️
3 y ago
Published
🎖️
Mr. Dubey
Publisher
📈
88%
Success Rate