SNAKES ON THE WEB:- Python
Sumit Kumar Raj
An Introduction to Python
- needs Software Freedom Day@Alexandria University
Contents
What is Python ???
Why Python ???
Who uses Python ???
Running Python
Syntax Walkthroughs
Python Twitter API
Coding Mantras
What is Python ???
General purpose, object-oriented, high level programming language
Widely used in the industry
Used in web programming and in standalone applications
History
Created by Guido von Rossum in 1990 (BDFL)
Named after Monty Python's Flying Circus
http://www.python.org/~guido/
Blog http://neopythonic.blogspot.com/
Now works for Dropbox
Why Python ???
Readability, maintainability, very clear readable syntax
Fast development and all just works the first time...
very high level dynamic data types
Automatic memory management
Free and open sourceImplemented under an open source license. Freely usable and distributable, even for commercial use.
Simplicity, Availability (cross-platform), Interactivity (interpreted language)
Get a good salaried Job
Batteries Included
The Python standard library is very extensive regular expressions, codecs
date and time, collections, theads and mutexs
OS and shell level functions (mv, rm, ls)
Support for SQLite and Berkley databases
zlib, gzip, bz2, tarfile, csv, xml, md5, sha
logging, subprocess, email, json
httplib, imaplib, nntplib, smtplib
and much, much more ...
Who uses Python ???
Hello World
print Hello World!
In addition to being a programming language, Python is also an interpreter. The interpreter reads other Python programs and commands, and executes them
Lets write our first Python Program
Python is simple
print "Hello World!"
#include int main() { cout