← Back to archive

Stdle #88 · classes · 2026-09-02

What does this Python snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

class C:
@staticmethod
def add(a, b): return a + b
@classmethod
def make(cls): return cls.__name__
print(C.add(2, 3), C.make())
Classes
4 attempts left

Answer & explanation