Introduction to Python

Introduction to Python

Python is an easy to learn, powerful programming language.  It has efficient high-level data structures and a simple but effective approach to object-oriented programming. The main advantages of Python includes:

  • It is easy to use (5 times shorter than equivalent in Java and 10 times shorter than equivalent in C)
  • It is powerful
  • It runs everywhere
  • It has a strong community
  • It is free and open source

Python can be downloaded from following webiste: https://www.python.org/download  and it is very easy to install and configure.

# This is my first Python program!

print 'Hello, world!'

Python uses # to mark comments. This is a common Unix convention, though Python isn’t particularly a Unix language.  Python is line-oriented: Statements are not terminated by a semicolon, but by the end of the line. Python files use a .py ending and register that file type as Python.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.