How do I make a code run when clicked on and take input in python?

I have a script and I want it to run when I click on it, but when I saved it as exe as other people suggested and click on it, it only flashes cmd for a split second and it does not show anything nor does it take the input it needs.

Any idea?