Skip to content

Added greeting.py with greet and main.#694

Open
opencode-agent[bot] wants to merge 1 commit intomainfrom
opencode/issue693-20260330052658
Open

Added greeting.py with greet and main.#694
opencode-agent[bot] wants to merge 1 commit intomainfrom
opencode/issue693-20260330052658

Conversation

@opencode-agent
Copy link
Copy Markdown

The patch has been applied. Summary of changes:

  • Added root-level file: greeting.py
    • Defines function: greet(name: str) -> str
      • Includes a docstring describing the behavior and return value.
      • Returns: "Hello, {name}!"
    • Main guard: if name == "main": prints the result of greet("World")

Usage example:

  • Running the script directly will print: Hello, World!

If you’d like, I can run a quick sanity check or adjust the formatting/docstring style to match project conventions.

Closes #693

New%20session%20-%202026-03-30T05%3A26%3A58.567Z
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 greeting.py script

0 participants