FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(learnpython): correct malformed print statement in Input and Output solution by bdtripp · Pull Request #882 · ronreiter/interactive-tutorials · GitHub

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 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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL