I'm new to programming. Bought a book "Python Programming For Absolute Beginner" by Michael Dawson.
One example he gave in the book is a simple program:
and I save it as game_over.py on my desktop.Code:print "Game Over" raw_input("\n\nPress the enter key to exit.")
Problem is, on my windows XP I can double click the file and the program will run (sort of a DOS prompt windows pops up). But on my Ubuntu desktop double clicking it will open the file in Gedit.
What do I have to do to be able to run the file by double clicking? Any help for a linux & python newbie like me?



Adv Reply


Bookmarks