Python shuts down when I try to run a module

Calvin Spealman cspealma at redhat.com
Mon Jul 23 11:05:38 EDT 2018


This is an unfortunate property of running command line programs on
Windows. If you run the script directly (like by double clicking on it?)
the console window will close when the program is done, so you can't see
the final output.

To get around this you could run them in the IDLE editor, which comes with
Python 3.7 for Windows, or you could open a windows command prompt and run
your Python scripts from there.

On Mon, Jul 23, 2018 at 3:00 AM, Lyra <ladydaae47 at gmail.com> wrote:

> Hello,
> I’ve just started to learn Python coding, and downloaded version 3.7.0
> from the website.  I’ve written 5 or 6 small programs and saved them, but
> whenever I try to run them, Python doesn’t work right.  The user answers
> the first question and presses ENTER, but then the Python window just
> closes, disappears, and shuts down.  My programs are all written correctly,
> and work just like they’re supposed to, when I run them in the Shell window
> instead.  There are no error messages.
> I went into the original installation file of Python and clicked on
> “Repair”.  There was a progress bar, and it said “Repair completed”, but
> the problem still occurs.
> I don’t want to uninstall the whole thing and download a different version
> until after I hear from someone here who knows more about it than I do.
>
> Please respond soon.
>
> Thanks.
>
>
> Sent from Mail for Windows 10
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list