Failing first stage in Build: Shell with Python

I’m stuck on Stage #008 (I’m not sure where I can get the code, scanned the page. This is the “print a prompt” stage in build:shell with python)

I’ve tried uncommenting the line and running the codecrafters submit command. However, the test still fails

Here are my logs:

[compile] Moved ./.codecrafters/run.sh → ./your_program.sh
[compile] Compilation successful.

[tester::#OO8] Running tests for Stage #OO8 (Print a prompt)
[tester::#OO8] Running ./your_program.sh
[tester::#OO8] Expected prompt ("$ ") but received ""
[tester::#OO8] Test failed

NOTE: This failure is expected! Uncomment code in app/main.py.

View instructions: https://app.codecrafters.io/courses/shell/stages/oo8

And here’s a snippet of my code:

import sys


def main():
    sys.stdout.write("$ ")
    pass


if __name__ == "__main__":
    main()

Hey @Kartik-Tatiparti, could you share a screenshot of how the code appears in your editor? That’ll help us debug this further.

Here’s the screenshot of the code in my editor -

@Kartik-Tatiparti Thanks for sharing the screenshot! Looks like the changes in main.py are uncommitted:

Could you try running:

git add .
git commit -m "save stage 1 changes"
git push

and check the ouutput?

Thanks for looking into this! I tried the steps you outlined, however I got the output that there were no changes to add/commit. To be sure, I deleted the repo, cloned it again, made the change and ran the git add, commit and push commands. Now the test has run successfully. Thanks again for your time!