Skip to content

Fix hello.py: add CLI name argument and correct output format#864

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-another-one-again-again
Draft

Fix hello.py: add CLI name argument and correct output format#864
Copilot wants to merge 2 commits intomainfrom
copilot/fix-another-one-again-again

Conversation

Copy link
Contributor

Copilot AI commented Mar 16, 2026

hello.py printed a hardcoded Hello World with no argument support and no punctuation.

Changes

  • Argument parsing: Reads sys.argv[1] as an optional name; falls back to "World" if absent or whitespace-only
  • Output format: Hello WorldHello, {name}!
python3 hello.py           # Hello, World!
python3 hello.py Alice     # Hello, Alice!
python3 hello.py "   "     # Hello, World!

💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

Co-authored-by: OliveMild <256848148+OliveMild@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix another one again Fix hello.py: add CLI name argument and correct output format Mar 16, 2026
Copilot AI requested a review from OliveMild March 16, 2026 14:41
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.

2 participants