Python Tutorial

Python is an object-oriented, high-level programming language. The development of Python was started in the late 1980s by Guido van Rossum at Centrum Wiskunde & Informatica (CWI) in the Netherlands as a successor to the ABC language. The first version of Python was released in 1991.

Python was named after a popular comedy show called 'Monty Python's Flying Circus' and not after a python snake.


A Simple Python program to print Hello World:


print("Hello World")
  

A Simple Python function to print Hello World:


def my_function():
    print("Hello World")

Uses of Python

Python has a high built-in data structures, that is combined with dynamic typing and dynamic binding. This makes Python, a very good choice for Rapid Application Development, as well as for use as a scripting language. It is also used as a language for connecting existing components together.

Python is used for developing desktop GUI applications, web applications, scientific, business applications. It is also widely used in scientific and numeric computing.

Important features of Python

  • Simple and easy to learn: Python has simple syntax which makes it easy to learn.
  • Support Modules and packages: Python encourages program modularity and code reuse as it supports modules and packages.
  • Interpreted: Python is an interpreted language because python runs from the source code. The code is compiled first before it is used and is interpreted.