WPM netto0
WPM0
Precisione100%
Trascorso0s
Tempo—
Caratteri0
Errato0
Errori0
Progressi0%
Leggi la guida al test di codice
Linguaggio di programmazione
Python
Difficoltà
Medio

Define a class with state and an increment method.

class Counter:
    def __init__(self, start=0):
        self.value = start

    def increment(self):
        self.value += 1
        return self.value


counter = Counter(3)