Skip to content

Adds Counter class; prints 1–10.#701

Open
opencode-agent[bot] wants to merge 1 commit into
mainfrom
opencode/issue697-20260330053940
Open

Adds Counter class; prints 1–10.#701
opencode-agent[bot] wants to merge 1 commit into
mainfrom
opencode/issue697-20260330053940

Conversation

@opencode-agent
Copy link
Copy Markdown

Created counter.py at the repository root.

Summary:

  • Adds a Counter class with:
    • increment(amount=1)
    • decrement(amount=1)
    • get_value()
  • Includes a main function that counts from 1 to 10 and prints each value.

How to run:

  • python3 counter.py
  • Output: 1 through 10, each on its own line.

Closes #697

New%20session%20-%202026-03-30T05%3A39%3A40.296Z
opencode session  |  github run

Co-authored-by: dzianisv <dzianisv@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a counter.py script

0 participants