promptdojo_

Write a Counter class with:

  • An instance attribute count that starts at 0.
  • A method increment() that adds 1 to self.count.
  • A method value() that returns self.count.

Make sure the count is per-instance — two counters should not share state.

Expected output:

3
1

this step needs the editor

on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.

open this same url on a laptop to keep going today.