Hello World
Updated on 28 Dec 2022
Check Python is installed
You can check that Python is installed with the following command.
python3 --version
If Python is installed correctly, you should get something similar to what is shown below.
Hello World
The very first application that is written in any language is usually the ‘hello world’ program. This is a very simple script that simply displays the text hello world
. We can see an example of that in Python below.
print("Hello World")
To run the script, use the console and open the folder where the script is written. Assuming our script is called hello.py, we run using the following command python3 hello.py