Python Programming Language

Python is a widely-used High Programming Language among the developer’s community. The main aim behind the development of this language is to emphasize code readability, and its syntax is defined easily in the fewer codes.

Additionally, it is also highly interpreted, interactive, and object-oriented language. During 1985–90, it was first created by Guido van Rossum. Before learning this language, Let’s have a look at why we need to learn Python?

Firstly, it’s a beginner-level programming language. It works on the philosophy that simplicity is the best. Furthermore, it supports a wide range of applications and stretches from simple text processing to WWW browsers to games.

Secondly, it supports the object-oriented style and supports multiple programming paradigms. Additionally, it provides extensive support libraries like Django for web development, Pandas for data analytics.

Thirdly, It is an interactive programming language where you interact easily with the interpreter by writing your programs.

Lastly, it is an interpreted one due to the availability of shorter codes, easy code readability, writing. It is quite similar to PHP and PERL.

Characteristics of Python Programming:

There are some important characteristics about the Python Programming language:

It is best to use as a scripting language and easily get compiled to byte-code for building large applications.

It both provides and supports the dynamic data types. In addition, it also supports automatic garbage collection.

Python is integrated easily with other languages like C, C++, COM, Java, and more.

Getting Started with Python

Python is both easier to code and learn. All the programs are written easily on a notepad,notepad++, or anything. In addition, you can also write the Python codes on an online IDE as it provides various features like an intuitive code editor, debugger, compiler, etc.

Before, writing and performing the Python codes, you must need to installed Python on your system. Therefore, follow the below-provided steps for the installation process.

Your windows may have pre-installed Python. It is mostly happening in Linux OS and Mac OS. To check if your device is pre-installed with Python or not, just go to Command Line(For Windows, search for cmd in the Run dialog( + R), for Linux open the terminal using Ctrl+Alt+T, for macOS use control+Option+Shift+T.

Then, run the listed command:

For Python2

python — — version

For Python3

python3 — — version

After this, if the Python is already installed in your Windows, it will generate a message with the Python version available.

And, if Python is not pre-installed in your Windows. You’ll start with the process of download and installation. You can find all the version for Windows, Linux, and macOS on Python.org

For Windows

First download the Python and follow the further steps for installation:

Steps to Begin the Installation

Run the Python Installer from downloads folder. Make sure to mark Add Python 3.7 to PATH otherwise you will have to do it explicitly.
It will start installing python on windows.

After installation is complete click on Close.
Bingo..!! Python is installed. Now go to windows and type IDLE.

How to run a Python Program

There are mainly two ways to run a Python program:

l Using IDEs: Here, you can use Pycharm, Jupyter Notebook, etc.

l Using Command-Line: Here exactly you have to use command-line options. Let us consider an example to run the Python Program in both Windows and Linux:

We’ll explain to you with the help of a simple Hello World program.

For Windows: Open Command-line and then compile the code type python HelloWorld.py. If your code has no error then it will execute properly, and output will be displayed.

For Linux: Open Terminal of your Unix/Linux OS and then compile the code type python HelloWorld.py. If your code has no error then it will execute properly, and output will be displayed.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store