Why you should learn Python?

Python is the most trending programming language as of now. Its more of a human readable language and its vast collection of libraries will boost your ability to program at a faster rate.

Python has topped the charts of IEEE Spectrum’s fifth annual interactive ranking of the top programming languages as the most trending language of 2018.

IT Giants who implemented their software products in Python

  • YouTube was written in PHP, now it's core part is converted to python.
  • Netflix uses python.
  • Google recognized python as one of it's official language.
  • Google Brain Team developed Tensor flow an open source software library used in machine learning, using 3 languages Python, CUDA(NVIDEA'S Parallel computing platform), C++.
  • Dropbox is written in python. Guido Van Rossum (author of python) was hired by DropBox.

How Python is different from other languages?

    • Everything in Python is an Object.
    • Python(Traditional python or CPython) is a byte-code interpreted programming language.
Compiler-
      Generates intermediate code(low level/machine readable language) out of source code(high level language ), which can be executed later on. Programming languages implemented using compiler have 2 steps in execution
         1.compilation
         2.execution
      Eg: C, C++, Java etc are implemented using compiler.

Interpreter-
      It also generates intermediate code, but execution takes place immediately, unlike compiler. Programming languages implemented using interpreter has a 1 step execution.
      Eg: Python, Javascript etc are implemented using interpreter. 
  • Less typing is involved when compared to C, C++, JAVA. Ignore those old fashioned curly braces { } used in programming.You can ignore datatypes while assigning a value to a variable, Python does the job for you.
# Late binding
lan = 'Python'
ver = 3.6
print(lan,ver,sep='-')

[output] >> Python-3.6
  • Compact syntax. Ever created a very basic class in Java, where you need to define a class, write a main method, create an object and print it? Creating a class with python requires lesser reserved words and no curly braces.
# Creating a class in Python
class Blog: 
      pass                                       

b = Blog()
print(b)
    
[output]>> <class '__main__.Blog'>
  • Supports OOP concepts, Functional Programming and Procedural Programming. Python supports OOP concepts such as creation of classes, Inheritance, Encapsulation, Polymorphism. It also supports usage of lambda expressions for functional programming.
  • Vast built-in functions and modules. In complicated operations such as data visualization, data analytics, machine learning python modules such as Matplotlib, Numpy, Pandas, Scikit- learn would come handy. These function rich modules allows us to perform such complicated tasks with ease.

Flavors of Python

Untitled

Python is defined by its implementation. So it's proper to say that Python is a language specification and it has multiple implementations. The official python downloaded is actually 'CPython' an implementation of Python using C. Apart from above mentioned there are other flavors as well such as MicroPython - for coding Micro Controllers, Stackless Python - for coding Micro Threads.

In the next page you can learn more about python(history, programming features etc).