Why learn Python

I.E.U. Juboraj Naofel
4 min readMay 7, 2021

--

In this blog I would like to write about the reasons why you should learn python. I have designed this article by collecting information from various sources. which are simply credited in various places in this Blog.

Image source: https://www.pexels.com/photo/green-snake-45246/

This Python language people use more often, is actually a very old language. It appeared almost 30 years ago! From February 1991 to present day it has done a huge impact in CS. This language is influenced by so many languages like ABC, Ada, ALGOL 68, APL, C, C++, Java, Lisp, Modula-3, Perl etc. This language influences so many languages like Apache Groovy, D, F#, JavaScript, Julia, Ruby, Swift etc.

The Zen of Python is a collection of 19 “guiding principles” for writing computer programs that influence the design of the Python programming language.[1]. (Source: Wikipedia )

First 4 principles are listed below, and you can check the reference section of this blog for other remaining.

Beautiful is better than ugly.

Explicit is better than implicit.

Simple is better than complex.

Complex is better than complicated.

Python is an interpreted high-level general-purpose programming language. Python’s design philosophy emphasizes code readability with its notable use of significant indentation. Its language constructs as well as its object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects.[29] (source: Wikipedia )

Image source: https://www.pexels.com/photo/grayscale-photo-of-computer-laptop-near-white-notebook-and-ceramic-mug-on-table-169573/

The reasons why you should learn python:

It is a language of multi paradigm

Python is dynamically-typed and garbage-collected. It supports multiple programming paradigms, including structured (particularly, procedural), object-oriented and functional programming. Python is often described as a “batteries included” language due to its comprehensive standard library. (source: Wikipedia)

Syntax and semantics

If you write any code in python. you will see the difference. Lets compare a code of python with a code of C language.

This is a code written in C language for printing a string Hello world!

#include<stdio.h>

int main(){

printf(“Hello world”);

return 0;

}

Now to do the same code in Python,

print(“Hello world”)

You can see the difference.

  • It is a language close to English
  • a flexible language,
  • easily readable,
  • no curly braces for delimiting a block( instead Whitespace indentation used)
  • no more mandatory use of semicolons! That means like C language, if you don’t put a semicolon after a statement in python, you no longer get any ugly error.

Forget variable declarations!

If I write a code like this in python,

a = 50

a = 50.6

a = “Hello world”

print(a)

This is completely safe to do! It is dynamically typed.

Python Libraries are the main attraction:

This is what makes python look like the hot cake! The main reasons why people love Python that much. It has a huge standard library.

Besides that we have third-party libraries that make our every projects fast to implement with python. You are just one click away from knowing about so many available libraries that suite your needs.

Just giving some popular external third-party library name list below so that you could have quick start,

Matplotlib:

It is a Plotting library that helps us visualize and analyze data.

Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python. ( Source: https://matplotlib.org/ )

Numpy

NumPy is a library for the Python programming language, adding support for large, multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these arrays.[5] (source: Wikipedia )

Visit: https://numpy.org/

In this blog I only mentioned 2 External third party libraries! but as you know we have a a lot of them!

Visit https://pypi.org/ to find, install and publish Python packages with the Python Package Index,

When I am writing this blog (2:28 PM; May 7, 2021), in pypi.org there are ,

303,134 projects

2,581,037 releases

4,280,502 files

505,627 users

External libraries can be installed using pip and importing is so easy that you could import them using the import statement after installation.

I will discuss more about python’s external libraries in future.

Image source: https://www.pexels.com/photo/brown-python-2062316/

To be continued…

References:

--

--

I.E.U. Juboraj Naofel

BSc. in Computer Science and Engineering. Instructor and Vice President at UIU App Forum. Content creator at YouTube. www.youtube.com/c/judemy