Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python doesnt open #8

Open
Lauris1223 opened this issue Nov 26, 2024 · 2 comments
Open

Python doesnt open #8

Lauris1223 opened this issue Nov 26, 2024 · 2 comments

Comments

@Lauris1223
Copy link

When I click on the python file it doesnt open it just closes down right away

@Marshope
Copy link

If a Python file closes immediately after being clicked, it's likely due to quick execution without pauses. To keep the window open and view output, you can add an input() statement at the end of your script, like this:
print("Script output here")
input("Press Enter to close the window...")
This will prompt the user to press Enter before closing, allowing you to see any printed output or error messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@Lauris1223 @Marshope and others