# Chapter 26 example: a counter object with methods and self. class Counter: def __init__(self): self.count = 0 def step(self): self.count += 1 counter = Counter() counter.step() counter.step() counter.step() print(counter.count) # 3 # Try-this: add a reset() method that sets self.count to 0, call it, # then print counter.count again.