How to Get Started
With Python?
In this tutorial, you will learn to install and run Python
on your computer. Once we do that, we will also write
our first Python program.
Python is a cross-platform programming language,
which means that it can run on multiple platforms like
Windows, macOS, Linux, and has even been ported to
the Java and .NET virtual machines. It is free and open-
source.
Even though most of today's Linux and Mac have
Python pre-installed in it, the version might be out-of-
date. So, it is always a good idea to install the most
current version.
The Easiest Way to Run Python
The easiest way to run Python is by using Thonny
IDE.
The Thonny IDE comes with the latest version of
Python bundled in it. So you don't have to install
Python separately.
Follow the following steps to run Python on your
computer.
1. Download Thonny IDE.
2. Run the installer to install Thonny on your
computer.
3. Go to: File > New. Then save the file
with .py extension. For example, [Link], [Link],
etc.
You can give any name to the file. However, the
file name should end with .py
4. Write Python code in the file and save [Link]
Python using Thonny IDE
5. Then Go to Run > Run current script or simply
click F5 to run it.