Python is an easy yet powerful language that is used vastly by top tech firms like Google and Facebook. It supports automatic memory management, so you no longer need to specify the data type (int, float, char etc.). Python is smart enough to do that for you. In this guide, we show you the step by step process of downloading and getting to run your first ‘hello world’ program using Python in your Windows PC.
Here we use CPython, the original and most widely used Python interpreter in the world. It was written in C. It’s free and can be downloaded from the official webste.
It stands for Integrated DeveLopment Environment. This is where you write new programs and save them.
This is the Python console where the output gets displayed after execution. You can also try different functions by directly typing in the shell.
The first ‘Hello World’ program
Write the below code in IDLE and save it using a desired name.
Now press F5.
You see “Hello World” printed in the Python shell.
As you can see, Python does not require any preprocessor directives like C++. So the syntax is brief and omits any unwanted elements. It frequently uses dictionary words like “print” and more. This concludes the first chapter in this Python beginners guide.
We will explore more in Python in the next post. We will learn about writing basic functions, executing loops and more. Stay tuned.