The document provides an introduction to the Python programming language. It discusses that Python is an interpreted, object-oriented, high-level programming language. It describes some of Python's key features like batteries included, easy to learn, runs on many platforms, powerful and fast. The document also summarizes Python's core data types, built-in data structures, functions, classes, modules and exceptions. It recommends some additional resources to learn more about Python.
17. Attention plz Python speaks now : Do not tire yourself by writing type of the object I will know it by myself ;) All copyrights reserved for M. Gebreel(Harry Potter)
18. Everything is an Object >>> x = 'hello, world' >>> y = x.upper() >>> y 'HELLO, WORLD!' >>> import calendar >>> cal = calendar >>> print cal.month(2007,10) All copyrights reserved for M. Gebreel(Harry Potter)
19. Unusual Suspects long — automatic promotion from int if needed >>> x = 1024 >>> x ** 50 32733906078961418700131896968275991521 6642046043064789483291368096133796404674554883270092325904157150886684127560071009217256545885393053328527589376L All copyrights reserved for M. Gebreel(Harry Potter)
20.
21.
22. Classes class MyClass: """This is a docstring.""" name = "Eric" def say(self): return "My name is %s" % self.name instance = MyClass() print instance.say() All copyrights reserved for M. Gebreel(Harry Potter)
23.
24. Exceptions Also used for flow control – StopIteration Exceptions are classes, and custom exceptions are easy to write to store extra state information EX: try: # Do stuff except Exception, e: # Do something else All copyrights reserved for M. Gebreel(Harry Potter)
25. Stop !!!! Wanna more ;) Check Out These Links http://docs.python.org/tut/tut.html - The Python Tutorial http://diveintopython.org/index.html - Dive Into Python http://www.garshol.priv.no/download/text/perl.html - Detailed Story of One Perl Hacker's Migration to Python http://www.linuxjournal.com/article/3882 - Eric Raymond's Detailed Story and Praise for Python http://www.pythonmagazine.com - Python Magazine http://www.planetpython.org - Python blog aggregation site All copyrights reserved for M. Gebreel(Harry Potter)