python tutorial | how to learn python step by step

Introduction of Python: Guido Van Rossum was the founder of python and python was finally released in 1980. Python is a simple, general-purpose, high level and object-oriented programming language like other languages C++,java etc. Till now there are 3 versions of python are available in the market. The latest version of python is python-3 which is most popular in the market moreover most of the IT sectors are working on python3.

What is python?
What is python?

What is python?

What is Python-Python is a general-purpose high level programming language it means it is machine independent. Python is also popular as very powerful language.

We don’t need to use data types to declare variable because it is dynamically typed so we can write a=10 to assign an integer value in an integer variable.

Python makes the development and debugging fast because there is no compilation step included in Python development, and edit-test-debug cycle is very fast.

Python’s syntax and dynamic typing with its interpreted nature make it an ideal language for scripting and rapid application development.

It is very easy to use and can be learn as compare to the other programming languages. And it means that we can develop everything like other programming languages like mobile application, web development etc. That’s why it is on the top of social search.

Where Python comes from?

Guido van Rossum was reading the script of “Monty’s python flying circus” (it was a comedy play). He wants a unique, short and an amazing name for his work, so he decided to choose this name for language i.e python.

Python Features and Advantages
Python Features and Advantages

Some Important features of Python:

:  Python includes lot of features but some important are as:

  • Python is easy to understand at the beginning level which supports the development of a wide range of applications from simple text processing to web development and games.
  •  It has the simplest structures and clearly defined syntax.
  • We can maintain source code very easily.
  • The syntax of python is very easy so that’s why non-programmers can understand it easily.
  • Python is interpreted-based language. So it does not need to compile the code before executing the program like Perl, PHP etc.
  • Python has a large library in it.
  • Python is high-level language like C, C++, Java, etc. It uses many layers to interact with Operating System and Computer Hardware. 
  • It is an interpreter-based language, so it is a little bit of slower than compiler-based language.
  • Graphic-based application like games makes it run slowly.

Where Python can be used:

As we have discussed that python is a general purpose high level programming language and it can be used almost as in every technical industry. Various industry are given below:

  • Data science 
  • Google for search engine
  • Data Mining
  • Console Based Application
  • Mobile Applications
  • Machine Learning
  • Speech Recognition
  • Image Processing Application
  • Yahoo (for yahoo Maps)
  • AI
  • Web Development
  • Industrial light and magic (production of special effects for movies like Phantom or The Mummy return).

 From where we can get python:

  • The simple and current source code, binaries, documentation, news etc. all are available on official website:

History of Python-

  1. Python was invented in 1980s by Guido van Rossum at CWI in Netherlands.
  2. In 1991 the final version of python 0.9.0 was released .
  3. There is a fact behind choosing the name PythonGuido van Rossum was reading the script of a popular BBC comedy series “Monty Python’s Flying Circus“. It was late on-air 1970s.

Python-3 vs. python-2- Whenever a new version of python was launch of any programming language its extends their features and also support nearly all the features of previous version.

  1. Whenever we want print something in python2 we use print “hello world” while in python3 to print something we use print(“Hello world”).
  2. Python 2.0 added some feature like list comprehensions, garbage collection system.
  3. Late Python 3.0 was released.  And it was released to design and rectify the fundamental flaw of the language.
  4. In python3 to print a sequence we use range() function while in python2 there was a xrange(). Which is removed from python3.
  5. There is a little change in exception handling in python3.

Python Features and Advantages:-

Python provide many useful features which makes it very popular and valuable programming language. It supports OOPs concept, procedural programming language and dynamic memory allocation.

  1. Easy to learn
  2. Easy to code
  3. Expressive language
  4. Interpreted language
  5. Cross platform language
  6. Free and open source language
  7. Object oriented language
  8. Very large standard library

Advantages of Python-Python is very simple as compare to the other programming languages means it is a straight forward programming language which means it is having a simplest way to write a program e.g – if we want to make a simple program of adding two numbers like 3+7; so there is no need to write a lot of syntax and we just need to write print and press entre and your output will be 10. As shown in the figure.

So with this easiness of python we can stay away from a lot of effort by writing a long syntax. How the output is came here 10 that we will learn in the next slide with installation.

  • It is an object oriented programming language and there is no need to declare any variable means it is dynamically typed language.
  • In python, we can stay away from many braces like curly braces and many more. By this property of python, a very long program can reduce in small lines. In simple way, we can say that indentation will be used in python.
  •  The code of python is very simple to  read means that everyone can read the code easily, means if we have develop a very long code so it is very simple to read and understand easily , emphasis  code readability is available in python.
  • Python language can do automatically memory management that means the garbage value will be deleted automatically from the code at the time of interpretation because the compiler is not available in python. And apart from this a function “Del” is available in python that can be used in coding to remove garbage values
  •  If we have develop the python code then this code can be run on any operating system or multiple OS It means python is platform independent.

Disadvantages/Limitations of Python- A lot of disadvantages are not in Python– 

  • Python programming language is not using at high level to develop enterprise software like in banking sector etc.
  • It is rarely using to develop Smartphone application. Or we can say that very less interference in mobile industry.
  • It is slow or slow in speed at the time of execution.
  • Run time error may occur because it is compiler free language.
  • If we know python properly that it does not means that we can learn other languages easily that is why it very different from other languages at the level of learning. 

Leave a Comment