
Programming with Python
* Object oriented
* Created by Guido Rossum
* comes from C, C++, Smalltalk etc..
Python is :
Interactive
Interpreted
Object Oriented
Interpreted-Translates code line by line
Interactive- Uses IDLE (Integrated Development Learning Environment)
Object Oriented- can select any style of programming
Features of Python-
Easy to Learn
Readable
Python libraries are compatible with all operating systems
Python is portable as it can run on a large variety of hardware platforms
Database Support - Python provides an interface to all databases
Programs
To print the version of Python -
import sys
print.(sys.version)
Escape Sequences
A special way to include characters in a string
\” - double quotes
EX - \”HELLO\”
\n - new line
EX - Hello\n
\t - tab or space
EX - HELLO\t
\\ - single backslash
EX- HELLO\\