Netto WPM0
WPM0
Dokładność100%
Upłynęło0s
Czas—
Znaki0
Niepoprawnie0
Błędy0
Postęp0%
Caps Lock włączony

Przeczytaj przewodnik po podpowiedziach dotyczących kodu

Język programowania
Python
Trudność
Średnie

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)