Most of the time, people are interested in learning programming languages. They take baby steps in trying out the basics once the installation is done. Typically, installing any software is a cumbersome process, and the initial enthusiasm is usually drained away during these steps — especially for newbies. Sometimes they give up as well. But fortunately, Python is very simple to install.
In this article, I’m going to help you install and use Python. In just a few minutes, you’ll be able to write a python program and execute it on your computer. To dive deeper and get a better understanding of Python, check out Python for Beginners. This learning path provides an ideal entry point for anyone wanting to learn how to program with the Python scripting language.
To get started, open a text editor (notepad, gedit etc) and type the following line.
Once you finish typing, save it as a text file with .py extension. (For example:hello.py).
When you enter python hello.py in the command line prompt, it should print the text “Hello Python.” This is our main objective today.
Let’s proceed with installing Python on Windows, Linux, and Mac operating systems. If you want to have a quick look at Python, we can execute Python code online as well.
Pre-installation check for Python
If you come across anyone from the industry with reasonable software development experience, you would get tips or best practices for installing software that will save plenty of time and errors. Let’s have a quick look at things we need to know.
Operating system details in your computer/laptop such as Windows, Linux or Mac
Operating system type whether it is 32 bit or 64 bit
Python version to be installed
Methods to get Python interpreter from the official website
How to verify Python installation
How to run Python code – Script mode or shell mode