A class is a special type in an object-oriented programming language like Python. If you squint really hard, it’s kinda like a dictionary in that it usually stores name-value pairs in source :

# Defines a new class called "Soldier"
# with three properties: health, armor, damage
class Soldier:
    health: int = 5
    armor: int = 3
    damage: int = 2

Just like a string, integer or float, a class is a type, but instead of being a built-in type, classes are custom types that you define.