Hi guys. I've downloaded Python, but while working on problem set 0, python closed. I selected the file and it won't run it, it just keeps opening and closing. Has anyone else experienced this and if so, how do I fix it??? Thanks!
If this is Windows, your file is running. If you double click on the file, Windows opens a Command Prompt (shell) window, executes the program in the window and closes the window when the program ends. This happens so fast that it looks like what you've described. Now that you're in the programmer world: Welcome to the command line! Open a Command Prompt. It will open to your home (profile) directory. Your desktop is a folder in this folder. You'll be able to execute your file in one of two ways: Desktop\yourFileName.py or: python Desktop\yourFileName.py I do my stuff in various Unixes, so I THINK that the first form is okay, but the second may be needed.
Join our real-time social learning platform and learn together with your friends!