Python is a very simple scripting language. It encourages programers to write code without many boilerplates. One of the most simple directive in Python is the “print” directive , which simply prints out a line. We are using here the Python 3 syntax because it more semantically correct and supports newer features, and Python 2 will not be maintained anymore beyond 2020.
First of all, create a file with a python extension, for example hello.py Write on the file the print call with “Hello World” text:
Then you can simply call python passing your file as parameter. You can do it on a windows cmd terminal, or on a linux terminal.
It will print Hello World.
Need help installing Python?
If you need help installing Python, check out our previous post: