Introduction and evolution of python

In the early ages of programming languages like C, Pascal or FORTRAN developed and concentrate more on the functional aspects of programming or functional programming. In this type of languages, there will be more focus on writing the code using functions, functions play an important role in writing the programming code. For example, we can imagine a C program as a combination of several functions. After that Computer scientists thought that programming will become easy for human beings to understand if it is based on real-life examples. Hence, they developed Object Oriented Programming languages like Java and .NET where programming is done through classes and objects. Programmers started migrating from C to Java and Java soon became the most popular language in the software community because of its Object orient language concepts we simply called them as OOPs.

Python Vs Java Language:

In Java, a programmer should write his code logic through classes and objects only. It is not possible to write a program without writing at least one class in java. then the programming is very lengthy to write the simple program you need to write the many lines of code. For example, a simple program to add two numbers in Java looks like this:


the above java program is in this below the flow

  • define a class
  • start execution with function
  • declare the variable types
  • assign some values into the variables
  • execute the math operations
  • print the output

Python Vs C Language:

In some cases, Programmers understood that in certain cases where there is no need to go for classes or objects, this type of coding is consuming more time. In such cases, they do not want to create classes or objects; rather they want to write C style coding. The same program to Multiply two numbers can be written in C as:

In C or java tightly coded programming language if you miss a semicolon or add a single dot the program cant compiled. whereas python loosely typed language it is simple as the writing English .

if you see both programs, Java program and C program, there is no change in the lines of code. but in Java, we can write the code in object orientation like programming which is not possible in C language. C language programming style is functional as we discussed earlier.

But now Programmers need the both C and Java flavours of code, they need both the Classes and objects programming style and Functional programming style or without any of them for this Type of Programming style the only answer is Python. to overcome the drawbacks in both C language and Java language python is used.

Leave a Reply

Your email address will not be published. Required fields are marked *