Practice · 1 of 3
Step Counter
CHALLENGE
Difficulty: intermediate+25 XP
Create a class Counter with a method tick() that returns the number of ticks so far (1 on the first call). Use an instance attribute, not a global.
Press Submit to check your solution.
Back to lesson: Practice: Class Fundamentals