I’m stuck on Stage #PN5.
I’ve tried both a while True into break, and a main().
It worked the first time, but after i tried changing the code a bit, it is not passing the tests now.
Here are my logs:
[tester::#PN5] Running tests for Stage #PN5 (The exit builtin)
[tester::#PN5] Running ./your_program.sh
[your-program] $ invalid_pineapple_command
[your-program] invalid_pineapple_command: command not found
[tester::#PN5] ✓ Received command not found message
[your-program] $ exit 0
[tester::#PN5] Error reading output: condition not met
[tester::#PN5] Test failed
And here’s a snippet of my code:
import sys
def main():
sys.stdout.write("$ ")
command = input() #try2
print(f"{command}: command not found")
main()
if __name__ == "__main__":
main()