Monday, March 16, 2015

Python 2.7 Tutorial By Techno-Class



Python 2.7

Introduction

 As you know, python is a programming language, easy to implement and a great language for the beginner programmers. It has simple but effective approach to object-oriented programming as well as efficient high-level data structures. It is an ideal language for scripting web crawler, natural language tool kit program and application development in many areas on most platforms.

Python Features:

  • Easy to learn 
  • Easy to read  
  • Easy understanding
  • Bulk standard library 
  • Portable on variety of platforms
  • provides interfaces to all commercial databases
  • Supports GUI applications

 

Installation process 

 Download python 2.7 from official website https://www.python.org/downloads/  and install the software.            

         
  After the installation of software we will start simple programming.First we start Python command line or IDLE Python GUI.

Type on command line 2+2 and press Enter, that gives the result.


Hello World Program 

>>> print 'Hello World !!' 
Hello World !!
You can also try this sample program to understand the basics. 
      >>> a = 5
>>> print a
5
>>> name = 'Rahul'
>>> print name
Rahul
>>>