Skip to content

fix(learnpython): correct malformed print statement in Input and Output solution#882

Open
bdtripp wants to merge 1 commit into
ronreiter:masterfrom
bdtripp:fix/input-output-syntax-error
Open

fix(learnpython): correct malformed print statement in Input and Output solution#882
bdtripp wants to merge 1 commit into
ronreiter:masterfrom
bdtripp:fix/input-output-syntax-error

Conversation

@bdtripp

@bdtripp bdtripp commented Jun 9, 2026

Copy link
Copy Markdown

This PR fixes a syntax error in the "Input and Output" exercise solution.

The previous solution block contained a malformed print statement,
which caused the exercise to fail with a syntax error when submitted.

This update replaces the broken line with a valid print statement:

print("Hello, my name is {}, I am {} years old, and I am from {}.".format(name, age, country))

Verification steps:

  • Ran the LearnPython.org environment locally to confirm the syntax error no longer appears.
  • Tested the corrected solution code directly using redirected stdin to simulate user input.
  • Confirmed the script executes successfully and produces the expected formatted output.

This resolves the issue reported in #863.

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.

1 participant