Python tutorial - Python for beginners - from A to Z with Python

Python tutorial - Python for beginners

Definition:

Python is a interpreted high level and object oriented programming language.Python is often used with new programmers or junior developers entering a data science and machine learning Technology.Python has excellent data processing libraries with Pandas and Dask, and good data visualization capabilities with packages such as Matplotlib and Seaborn.

Introduction:

  • Python is a general purpose high level programming language.
  • Python was developed by Guido Van Rossam in 1989 while working at National Research Institute at Netherlands.
  • But officially Python was made available to public in 1991. The official Date of Birth for Python is : Feb 20th 1991.
  • Python is recommended as first programming language for beginners.




The name Python was selected from the TV Show "The Complete Monty Python's Circus", which was broadcasted in BBC from 1969 to 1974. Guido developed Python language by taking almost all programming features from different languages

  • Functional Programming Features from C.
  • Object Oriented Programming Features from C++.
  • Scripting Language Features from Perl and Shell Script.
  • Modular Programming Features from Modula-3.
Most of syntax in Python was derived from C and ABC languages.

Where we can use:

We can use python everywhere. The most common important application areas are
  • For developing Desktop Applications
  • For developing web Applications
  • For developing database Applications
  • For Network Programming
  • For developing games
  • For Data Analysis Applications
  • For Machine Learning
  • For developing Artificial Intelligence Applications
  • For IOT
Note: Internally Google and Youtube use Python coding NASA and Nework Stock Exchange Applications developed by Python. Top Software companies like Google, Microsoft, IBM, Yahoo using Python.

Features of Python:

1. Simple and easy to learn: Python is a simple programming language. When we read Python program,we can feel like reading english statements. The syntaxes are very simple and only 30+ kerywords are available. When compared with other languages, we can write programs with very less number of lines. Hence more readability and simplicity. We can reduce development and cost of the project.

2. Freeware and Open Source: We can use Python software without any licence and it is freeware. Its source code is open,so that we can we can customize based on our requirement. Eg: Jython is customized version of Python to work with Java Applications.

3. High Level Programming language: Python is high level programming language and hence it is programmer friendly language. Being a programmer we are not required to concentrate low level activities like memory management and security etc..

4. Platform Independent: Once we write a Python program,it can run on any platform without rewriting once again. Internally PVM is responsible to convert into machine understandable form.

5. Portability: Python programs are portable. ie we can migrate from one platform to another platform very easily. Python programs will provide same results on any paltform.

6. Dynamically Typed: In Python we are not required to declare type for variables. Whenever we are assigning the value, based on value, type will be allocated automatically.Hence Python is considered as dynamically typed language. But Java, C etc are Statically Typed Languages b'z we have to provide type at the beginning only. This dynamic typing nature will provide more flexibility to the programmer.

7. Both Procedure Oriented and Object Oriented: Python language supports both Procedure oriented (like C, pascal etc) and object oriented (like C++,Java) features. Hence we can get benefits of both like security and reusability etc

8. Interpreted: We are not required to compile Python programs explcitly. Internally Python interpreter will take care that compilation. If compilation fails interpreter raised syntax errors. Once compilation success then PVM (Python Virtual Machine) is responsible to execute.

9. Extensible: We can use other language programs in Python. The main advantages of this approach are: 1. We can use already existing legacy non-Python code 2. We can improve performance of the application

10. Embedded: We can use Python programs in any other language programs. i.e we can embed Python programs anywhere.

11. Extensive Library: Python has a rich inbuilt library. Being a programmer we can use this library directly and we are not responsible to implement the functionality.