1 Precondition

1.1 The development environment

1.2 Hello World

If you have already worked with other programming languages, then you know that a programming tutorial always begins with the script ‚Hello, World‘. This trivial little script is not only intended to prepare you for upcoming programming techniques, but actually serves to check whether the interpreter can work with the can work with the written text.

1.2.1 Working with the Python shell

A special feature of Python is that you can not only create and execute programs in the traditional way of creating and executing programs, but you can also execute individual instructions can also be executed. In Linux and MacOS, this is done by starting the terminal with the command „python3“.

In Windows, open a command window (Windows key + R, then enter cmd.exe in the search field and confirm with Enter) or the PowerShell (Windows key + R and enter Powershell.exe in the search window and confirm with Enter ) and execute the command „python“.

In all cases, you will now be taken to the command interpreter, which is often referred to as the shell. In PyCharm you can switch directly to the ‚Python- Console‘ in the lower area in order to be able to enter the corresponding commands there.