Python Programming Guides tutorialspoint.com/python #!/usr/bin/python If the script is made executable, the operating system will use that first line to know which interpreter to run to parse the rest of the file. If you always run python scripts from the command line like python myprogram.py then you could remove this line if preferred.
The IDLE IDE (Integrated Development Environment) is included with the Raspbian image. Tkinter is the standard GUI library for Python. IDLE not only supports Tkinter but is itself a Tkinter app. Starting Programming With IDLE Run IDLE which will open the Python Shell window. Select Menu > File > New Window Write your program, e.g. #!/usr/bin/python print "Hello!"; To […]