PYTHON

Python program can be run from the RPi programs menu. Once the Python shell is open, click on “File” and in the drop down menu click on “New”. A new window will appear. This is where the Python desired program is written/copied and pasted. The file has to be saved before it can be run.

The program can be run from Python directly by pressing F5 or from the “RUN” command in the file menu. However, in some situations it does not work, it needs to be run from the LX Terminal window.

In the LX Terminal window, the program will be run by typing:

sudo python file_name.py (file_name is the name of the file that was saved on Python)programing-3

press Enter