Ask coding questions

← Back to all posts
Python code doesn't work, so I need debugging
h
silvxrcat

Hi! My code doesn't work. It's a custom terminal I made, but it can't run commands. Example: run exec addfile (your username). It should work, but all it does is do nothing. It can't run commands. I made a parser and maybe that's the problem, but if you can please in detail explain how I could fix this.

Thanks, and have a good foo bar :)

Answered by InvisibleOne [earned 5 cycles]
View Answer
Voters
silvxrcat
Comments
hotnewtop
InvisibleOne

Your while True loop isn't breaking.

silvxrcat

@InvisibleOne can you show me how to fix it?

InvisibleOne

After your else statement on line 14 add break @silvxrcat