Q. Which keyword is used to create a class in Python?

  • (A) class
  • (B) struct
  • (C) object
  • (D) define
πŸ’¬ Discuss
βœ… Correct Answer: (A) class
Explanation: The `class` keyword is used to define a new class in Python.
Explanation by: Rati Dubey
The `class` keyword is used to define a new class in Python.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
72
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
83%
Success Rate