there are two possibilities - either your program finishes too fast or there is problem and your exe actually crashes.
to see if it is the former - don't run it by double-click with mouse, but open cmd, change current working directory to one where your exe is and run it from command prompt. This way it will not close the cmd when the execution ends
in this case you can add
to see if it is the former - don't run it by double-click with mouse, but open cmd, change current working directory to one where your exe is and run it from command prompt. This way it will not close the cmd when the execution ends
in this case you can add
input('Press any key...')at the end and it will wait to press a key before execution ends.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs