નેટ WPM0
WPM0
ચોક્કસતા100%
વિતી ગયેલ0s
સમય—
અક્ષરો0
ખોટો0
ભૂલો0
પ્રગતિ0%

Shift + Enter · Start / restart

કોડ પ્રોમ્પ્ટ માર્ગદર્શિકા વાંચો
પ્રોગ્રામિંગ ભાષા
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)