Close

Python language getting started

[Last Updated: Feb 1, 2022]

Python is a general-purpose programming language.

It is an interpreted language, i.e. the code is converted into an intermediate bytecode which is then executed by the Python interpreter.

In this tutorial we will learn how to write our first python code.

Installing Python

Install the latest python version as stated in this tutorial.

Hello world example

We are going to create our first program in Python.
Python source code is written in file with extension .py

Let's create a file hello-world.py anywhere in your hard disk:

scripts/hello-world.py

print("hello world from python!")

Running our Python program

D:\python-hello-world>py hello-world.py
hello world from phyton!

See Also