Python Tutorial

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

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

Where is Python used?

  • Python is used for developing desktop GUI applications, web applications, scientific, business applications. It is also widely used in scientific and numeric computing.
  • 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.

Why should you learn Python?

You should learn Python because:

  • Simple and easy to learn: Python has simple syntax which makes it easy to learn.
  • 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.
  • Support Modules and packages: Python encourages program modularity and code reuse as it supports modules and packages.

How to print Hello World in Python?

A Simple Python program to print Hello World:

print("Hello World")

Python Function

A Simple Python function to print Hello World:

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