Python file opening issue

Solved
Swatou_ Posted messages 4 Status Membre -  
samigtx1459 Posted messages 470 Registration date   Status Membre Last intervention   -
Hello/Good evening, I have a Python file with code inside, but when I open it, the window opens and closes very quickly. Could someone please help me? I have the latest version of Python, just in case.

1 réponse

samigtx1459 Posted messages 470 Registration date   Status Membre Last intervention   68
 
Good evening,
It's completely normal that when you double-click on the file, it executes so quickly that you don't have time to see anything.
You have two options:
If you're on Windows or Linux, you open a terminal in the same folder and type python + the name_of_your_file.py
Or on Windows, you have the Python IDLE where you can open your Python file and execute it in a Python shell.
0