実効WPM0
WPM0
正確率100%
経過時間0s
時間—
文字数0
不正解0
ミス0
進捗0%

Shift + Enter · 開始 / やり直し

コードのお手本のガイドを読む
プログラミング言語
Python
難易度
中級

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)