Getting Started with Python

What is Python:

Python is a programming language created by Guido Van Rossum. Python is  noted for its elegant syntax and readable code, if you are at the  beginning of  your programming career python suits you best. Python is most preferred language for Data Science,GUI development, Web application, Financial calculation, Data Analysis & Visualization.


Is Python an interpreted language?

Yes, python is an interpreted language.An interpreter will parse your python program line by line where as  compiled languages like C or C++, where  compiles the program first and then start running.

The main difference is that interpreted languages are little bit slow as compared to compiled languages. You will definitely get some performance benefits if we write code in compiled languages like C or C++.

As a beginner ,writing codes in compiled languages can be  a daunting task . In python you don’t need to define any data structure, no need to define small utility functions because python has everything to get you started.

Moreover python has hundreds of libraries available at which you can use in your project without reinventing the wheel.

Python is Dynamically Typed

In python you don’t need to define variable data type ahead of time, python automatically guesses the data type of the variable based on the type of value it contains.

For e.g

In the above line “Hello Python”  is assigned to myvar  , so the type of myvar  is string.
Note that in python you do not need to end a statement with a semicolon ( ; ) .

Suppose little bit later in the program we assign  myvar a value of  1 i.e

now myvar  is of type int .

Python is strongly typed

If you have programmed in php or javascript. You may have noticed that they both convert data of one data type to other data type automatically.

For e.g:

in JavaScript

will be ’12’

here 1  will be converted to string and concatenated to “2” , which results in ’12’
, which is a string. In Python automatic conversions are not allowed, so

will produce an error.

Write less code and do more

Python codes are usually 1/3 or 1/5 of the java code. It means we can write less code in Python to achieve the same thing as in Java.

In python to read a file you only need 2 lines:

Who uses python:

Python is used by many large organization like Google, NASA, Quora, HortonWorks and many others.

Okay what i can start building in python ?

Pretty much anything you want. For e.g

  • GUI application.
  • Create Websites.
  • Scrape data from website.
  • Analyse Data.
  • System Administration Task.
  • Game Development.

and many more …

Leave a Reply

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