Introduction to Python Language

30 / Nov / 2016 by Mayur Rastogi 0 comments

Python is readable, dynamic, pleasant, fast, flexible and powerful language. It is a programming language which helps you work quickly and integrate systems more easily.

python-logo-master-v3-TM

LANGUAGE FEATURES

  • Interpreted
    It executes instruction directly without any compilation like in C, C++, Java. Python converts the source code into bytecode which is then translated into computer specific language to run it. No need of linking and loading with libraries.
  • Platform Independent
    Just like java, Python code can be executed on multiple OS, that is written once and can run anywhere, you just need Python installed on your system.  
  • Free and Open Source it is freely available in the market and is “Open Source” which enables you to modify the code as per your need.
  • High-level Language
    We do not have to worry about low level details like managing memory leaks or register level information.
  • Embeddable
    It can be embedded with any language.
  • Robust: Just like Java it has its own memory management built in techniques.
  • Rich Library Support
    The Python Standard Library is very vast. Its uses battery included concept that is to import your code and use it according to your need.

Current Applications of Python

  1. Mostly Linux Installer is written in Python.
  2. Python is mostly used for web development, and most common web frameworks are Django, Fabric and Pyramid.
  3. Supports Socket and GUI programming.
  4. It is also used for embedded and for AI programming.
  5. Run on advanced Content Management Systems such as Plone and Django CMS.
  6. It is also used as a support language by software developers for ‘Build Control’ and Management, Testing, and in many other ways.

Simple Python Code

Writing code in Python is simple as English language, if you follow proper method of writing codes in Python. It is very simple for others to understand.

  • Writing code in version 2:

     print “Hello Python” 


  • Writing code in version 3:

     print (“Hello Python”) 


Which Python version to use?

Below are few considerations that can hep you decide.

Python 2.7

  • This is the current version on Eniac, so we recommend using it
  • Last stable release before version 3
  • Implements some of the new features in version 3, fully backward compatible

Python 3

  • Released a few years ago
  • Much cleaner language in many ways
  • Strings are in Unicode, not in ASCII

Note: Many third party tools are still not compatible with Python 3.

I hope this blog gives you some idea about Python language and some confidence to work on Python as well. For more similar blogs on Python keep exploring or subscribes to our blogs. :)

FOUND THIS USEFUL? SHARE IT

Leave a comment -