A

Admin • 833K Points
Coach

Q. Which of the following is correct for creating an object in Python?

  • (A) obj = class()
  • (B) class obj = new A()
  • (C) obj = A()
  • (D) object obj = A
  • Correct Answer - Option(C)
  • Views: 34
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

The syntax `obj = A()` is used to create an object of class A in Python.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.