# Is this just Syntax issue or something else? Shell EZ5

**URL:** <https://forum.codecrafters.io/t/is-this-just-syntax-issue-or-something-else-shell-ez5/16127>\
**Category:** Challenges\
**Tags:** challenge:shell\
**Created:** [May 22, 2026, 4:32pm UTC](https://forum.codecrafters.io/t/is-this-just-syntax-issue-or-something-else-shell-ez5/16127 "2026-05-22T16:32:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Theo2you](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/theo2you/32/25888_2.png) [@Theo2you](https://forum.codecrafters.io/u/Theo2you)\
**Post date:** [May 22, 2026, 4:32pm UTC](https://forum.codecrafters.io/t/is-this-just-syntax-issue-or-something-else-shell-ez5/16127/1 "2026-05-22T16:32:44Z")

</div>

I’m stuck on Stage #EZ5.

I’ve tried restructuring and adding print(f"{userInput} " :command not found")  
as well as a space in sys.stdout.write("$ ")

Here are my logs:

```auto
[tester::#EZ5] ^ Expected prompt ("$ ") but received "Traceback (most recent call last):" 

```

And here’s a snippet of my code:

```python
def main():
    runningLoop = True

    while runningLoop:
        sys.stdout.write("$ ")

        userInput = input()

        found = False

        for command in commands:
            if userInput.startswith(command):
                commands[command](userInput)
                found = True
                break

        if not found:
            print(f"{userInput} ": command not found")

```

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [May 25, 2026, 8:17am UTC](https://forum.codecrafters.io/t/is-this-just-syntax-issue-or-something-else-shell-ez5/16127/4 "2026-05-25T08:17:29Z")

</div>

Hey @Theo2you, looks like you’ve got past this stage. Do you happen to remember what was wrong? Would love to see if we can improve the tester / instructions.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [May 31, 2026, 6:13pm UTC](https://forum.codecrafters.io/t/is-this-just-syntax-issue-or-something-else-shell-ez5/16127/6 "2026-05-31T18:13:37Z")

</div>

Closed on May 31, 2026, 6:13pm UTC

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
