Select your language

Every programming journey starts with saying hello to the world. Let's honor this tradition by writing a little script that we run on our system and that prints Hello World.

First you need to open your IDE of choice. The example here uses IDLE.

Once it is started, create a new file and type the line below.

print('Hallo Welt')

The file is saved as "Hallo Welt.py".

The script can be run in two ways. Either we open the file in the editor and press run or F5 or we open the terminal and enter

python /home/pi/Meine Programme/Hallo Welt.py

Please be aware that you either have to type the full path or you need to change your working directory to the folder where the script is located.

The directory can be changed with the command

cd /home/pi/Meine Programme/

The screenshot shows both ways.