Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4834

Python • Re: How do I fix this Python code?

$
0
0
Any way to automate this? I ran it and I needed to press enter for it to stop everything. Is there a way to run it when code stop button is pressed?
Have you read the docs for that module yet to see if it has that option to not prompt like that? I have not. If that's an option it will be documented in there.

Though I am thinking this calls sys.exit() and that is causing Mu to ask if you really want to exit the interpreter. If that's the case, you're back at square one.

Statistics: Posted by memjr — Fri Mar 01, 2024 3:02 pm



Viewing all articles
Browse latest Browse all 4834

Trending Articles