I'm a beginning programmer in Python and I have a strange problem with my computer. When I have a .py file on my computer (containing a script that works), and I double click on it to open, the following happens: the program opens (it's the black screen view), but it shuts itself down within a second, and the program isn't executed. However, when I right click and choose "edit with IDLE", everything works as normal. 
I didn't have this problem from the beginning on, but then I installed some other versions of Python and I think that's the moment when scripts didn't want to open anymore.
Austin is right, you made a console app, and once its finished(in microseconds), it closes itself.
Create a mainloop or use Austin's trick, to force app not to close itself.
computer (windows XP) doesn't want to open .py