Python Introduction

Python is a dynamic, high level, free open source and interpreted programming language. It supports object-oriented programming as well as procedural oriented programming language.

In python, we don’t need to declare the type of variable because it is a dynamic typed language.

For example, x=20
  • here x can be anything such as String, int etc.,

Use of Python
  • Web development (server side)
  • Software development
  • Mathematics
  • System scripting
Features of Python
  • Easy to code
  • Free and open source
  • Object oriented language
  • GUI programming support
  • High-level language
  • Extensible features
  • Python is portable language
  • Python is integrated language
  • Interpreted language
  • Large standard library
  • Dynamically typed language

Feature: Easy to code

Python is high level programming language. Python is very easy to learn language as compared to other language like C, C#, JavaScript, Java etc.,

It is very easy to code in python language and anybody can learn python basic in few hours or days.

It is also developer-friendly language


Feature: Free and Opensource

Python language is freely available at official website and you can download it from the given download link below click on the download python keyword.

Since, it is open-source, this means that source code is also available to the public. SO you can download it as, use it as well as share it.


Feature: Object oriented language

One of the key features of python is Object Oriented Programming.

Python supports object oriented language and concepts of classes, objects encapsulation, etc.,


Feature: GUI programming support

Graphical User Interface

It can be made using a module such as PyQt5, PyQt4, exPython or Tk in python.

PyQ5 is the most popular option for creating graphical app with python.


Feature: High level language

Python is a high level language.

When we write a program in python, we do not need to remember the system architecture, nor do we need to manage the memory.


Feature: Extensible

Python is a extensible language.

We can write our some python code into C or C++ language and also we can compile that code in C/C++ language.


Feature: Portable language

Python language is also a portable language.

For example, if we have python code for windows and if we want to run this code on other platforms such as Linux, Unix and MAC then we do not need to change it, we can run this code on any platform.


Feature: Integrated language

Python is also an integrated language because we can easily integrated python with other language like C and C++.


Feature: Interpreted language

Python is an interpreted language. Because python code is executed line by line at a time.

Like other language C, C++, Java there is no need to compile python code this makes it easier to debug our code.

The secure code python is converted into a immediate from called byte-code.


Feature: Large Standard Library

Python has a large standard library which provide rich set of modules and functions so you do not have to write your own code for every single thing.

There are many libraries present in python such as regular expressions, unit-testing, web browser, etc.,


Feature: Dynamic language

Python is dynamically-typed language.

That means the type of a variable is decided at run time not in advance. Because of this feature we don’t need to specify the type of variable.

Java vs Python
Comparison FactorsJavaPython
SpeedHighLow
LegacyLowHigh
CodeLowHigh
Practical AgilityHighHigh
TrendsLowHigh
SalaryLowHigh
SyntaxHighHigh
Python 2.7 vs Python 3.6
Basis of comparisonPython 3Python 2
Release Date20082000
Function printprint (“hello”)print “hello”
Division of IntegersWhenever two integers are divided, you get a float valueWhen two integers are divided, you always provide integer value.
UnicodeIn Python 3, default storing of strings is Unicode.To store Unicode string value, you require to define them with “u”.
Basis of comparisonPython 3Python 2
SyntaxThe syntax is simpler and easily understandable.The syntax of Python 2 was comparatively difficult to understand.
Rules of ordering ComparisonsIn this version, Rules of ordering comparisons have been simplified.Rules of ordering comparison are very complex.
IterationThe new Range() function introduced to perform iterations.In Python 2, the xrange() is used for iterations.
ExceptionsIt should be enclosed in parenthesis.It should be enclosed in notations.
Basis of comparisonPython 3Python 2
Leak of variablesThe value of variables never changes.The value of the global variable will change while using it inside for-loop.
Backward compatibilityNot difficult to port python 2 to python 3 but it is never reliable.Python version 3 is not backwardly compatible with Python 2.
LibraryMany recent developers are creating libraries which you can only use with Python 3.Many older libraries created for Python 2 is not forward-compatible.

Python Applications
  • Web development – Python can be used to make web applications at a rapid rate.
  • Game development – Python is also used in the development of interactive games.
  • Machine learning and Artificial intelligence.
  • Data science and Data visualization.
  • Desktop GUI.
  • Web scrapping applications
  • Business applications
  • CAD applications

Leave a comment

Design a site like this with WordPress.com
Get started