Execute Sharepoint's Python script

I'm new to SharePoint, so excuse me if my question is dumb. I have not found an answer on the net yet.

I have a Python script in SharePoint 2013 and want to run it from SharePoint.
When I click on it, I have 3 options, Open / Save / Cancel. When I choose to open, a window console is opened briefly and then closed, but I have no time to see anything.
My script is a quiz, an automatic python script that asks questions and answers at the end. It works fine when I save it to my desktop and double click on it, for example.

If I can not do that with Python, what are my solutions for running such a quiz directly from SharePoint?

Thanks for your time !