Defining a Class A class in Python can be defined using the class keyword . As per the syntax above, a class is defined using the class keyword followed by the class name and : operator after the class name, which allows you to continue in the next indented line to define class members.