Reasons why we have to learn python

Python is in high demand in 2020. Everyone is learning it for many purposes. And, here we have listed top 10 reasons to learn python as your first language. So, a short description.

Python is a general purpose and high level object oriented programming language. Python language was developed in 1991 by Guido Van Rossum at CWI( Centrum Wiskunde & Informatica) in the Netherlands. It is derived from two languages Modula-3 and ABC.

features of python language

Interactive and Easy to use

The core of the Python language is compact and its semantics and coding style are easy. Python programs are smaller than the other programming languages e.g C, Java etc.

Let us understand this through an example :-

C program

#include<stdio.h>
int main( )
{
	int a=12,b=30;
	printf("The initial values are- a=%d , b=%d",a,b);

	/* swapping two numbers /*
	a=a+b;
	b=a-b;
	a=a-b;
	printf("After swapping the values will be- a=%, b=%d",a,b);
	return 0;
}

Python program

a,b=12,30
print('The initial values are a=%5d, b=%5d' %(a,b))
a,b=b,a     #This statement will swap the value of a and b
print('After swapping the values will be-  a=%5d, b=%5d' %(a,b))

Java program

class TestSwap
{
   public static void main( String[] args)
   {
       int a=12,b=30;
       System.out.format("The initial values are a=%d, b=%d", a, b);
       a=a+b;
       b=a-b;
       a=a-b;
       System.out.format("After swapping the values will be-a=%d, b=%d", a, b);
   }
}

As we can see that the python program is smaller than the C and Java programs and even we don't need to define the main function within a Python program.

Open Source and large community

Python is developed under an OSI-approved open source license, that means it is freely usable and distributable without any cost, even for commercial use. Anyone can modify or extend an open source software and it is the most widely used programming language now-a-days.

Interpreted language

Python is an interpreted language that means the interpreter executes the code line by line at a time and it makes python an easy to debug language.

Cross platform language an Portable

Python can run on distinct platforms like: Windows, Mac OS, Linux/UNIX etc. This feature helps the programmer to develop the software for different platforms by writing a program only once.

A huge library

The python interpreter comes with a huge library of additional modules that extend the capabilities of the language and  allow network communication, regular expression matching and text processing (including extensive XML support) etc.

Integrated and Extensible language

Python is an integrated and extensible language that means python code can easily integrate with other languages. We can write python code in between other programming language’s code that means python and C can work together in tandem.

Dynamically Typed

Python is a dynamically typed language that means we don’t need to declare the type of variable and also it takes care of memory management.

Object-oriented language

Python is an object oriented language that means it follows all the object oriented paradigms such as classes, polymorphism, encapsulation etc.

GUI programming

Python follows a Graphical user interface, which means you could design and develop the interface yourself. This can be possible using these modules : Tk , wxPython, PyQt5, PyQt4 etc.

Variety of Applications

Python can be used to develop softwares for several distinct fields. For example:

  • Artificial Intelligence
  • Machine learning
  • Web development
  • Game development
  • Text processing
  • Web scraping
  • CAD( computer aided design) Applications
  • Data Science
  • Embedded Applications
  • Desktop GUI Applications
  • Audio, Video and many other Applications.

We have listed top 10 reasons here. If you want to learn more about python programing you can visit here.

Read More: Python Programming Tutorials