Beginner Python
Q29 / 101

How do you define a class in Python?

Correct! Well done.

Incorrect.

The correct answer is A) class MyClass():

A

Correct Answer

class MyClass():

Explanation

Python uses the class keyword. The parentheses can optionally specify a base class (class Child(Parent):).

Progress
29/101