Maybe you will come to a point in your project where you need a very special solution and have to write your own program. If you”re already looking forward to this opportunity finally coming, there”s probably nothing new we can show you in this chapter. If this topic is more of a mystery to you, you are in exactly the right place! In this chapter we will work together to lift the mystical veil that shrouds the subject.
You will see how easy it is to write a small program.
- Your RevPi
- Start the RevPi.
- Log on.
- Switch to the graphical user interface. To do so, enter “startx” in the command line.
- Click on the “Menu” button.
- Select “Programming”.
- Click on “Python 3”.
The Python shell opens. You can write and execute commands in the shell.
- Click on “File”.
- Click on “New Window”.
The Python editor opens. You can write commands in the editor.
- Write the following command: print (“Hello World!”).
- Click on “File > Save”.
- Save the file under the name “hello.py”.
That”s it! Easy, right? You can already run the program.
- Click on “Run > Run Module” to do so.
You will now see the output “Hello World!” in the Python shell.
You can naturally do much more with Python than just output text. If we managed to pique your interest about this topic, you can find more information about Python here: https://www.python.org/doc/.