Practice ยท 1 of 3
Step Counter
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.
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Class Fundamentals