Skip to content

Added greeting.py with greet() and main#695

Open
opencode-agent[bot] wants to merge 1 commit into
mainfrom
opencode/issue693-20260330052710
Open

Added greeting.py with greet() and main#695
opencode-agent[bot] wants to merge 1 commit into
mainfrom
opencode/issue693-20260330052710

Conversation

@opencode-agent
Copy link
Copy Markdown

The greeting.py script has been added at the repository root with the required features:

  • Function greet(name: str) -> str that returns "Hello, {name}!"
  • Docstring included for the function
  • name == "main" block that prints the result of greet("World")

File content (greeting.py):

def greet(name: str) -> str:
    """Return a greeting for the given name.

    This function constructs a simple greeting string of the form:
    "Hello, <name>!"
    """
    return f"Hello, {name}!"


if __name__ == "__main__":
    print(greet("World"))

If you’d like any tweaks (additional tests, type hints, or different main behavior), I can adjust quickly.

Closes #693

New%20session%20-%202026-03-30T05%3A27%3A10.114Z
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