What is a python

Python is a cross-platform programming language, meaning, it runs on multiple platforms like Windows, macOS, Linux and has even been ported to the Java and .NET virtual machines. It is a free and open-source.
Even though most of today’s Linux and Mac have Python preinstalled 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.

Your first Python Program

Now that we have Python up and running, we can write our first Python program.
Let's create a very simple program called "Hello World!".  A "Hello, World!" is a simple program that outputs Hello, World! on the screen. Since it's a very simple program, it's often used to introduce a new programming language to a newbie.
Type the following code in any text editor or an IDE and save it as helloWorld.py
  1. print("Hello world!")
Then, run the file. You will get the following output.
Hello world!

Post a Comment