Sobes.tech
Junior — Middle

What is a key attribute required for declaring a class in a new program?

sobes.tech AI

Answer from AI

The keyword class is used to declare a class in Python. For example:

class MyClass:
    pass

Here, class is a mandatory attribute for defining a new class.