2. What is Python?
• General purpose, interpreted
• Supports procedural, object oriented, functional
paradigms
• Easy for newcomers
3. Python
Used in many application domains:
web development, gaming, animation, scientific
computing, robotics, spacecraft control, desktop
applications, testing microchips …
Google, Youtube, Disqus, Reddit, Dropbox, Disney,
Pixar, Nasa, Rasberry Pi, Intel …
4. Python philosophy
• Readable code
“Code is read much more often than it is written”
• Developer productivity, built-in toolset
Large standard library / third party libraries
5. Whitespace is important
if 1 < 2:
print 'Numbers behaving normally'
def my_function(a, b):
return a + b
my_function(2, 3)
6. Get up and running with
Python quickly
• Free online book: “Dive Into Python”
• Try out the interpreter
7. $ python
Python 2.7.6 (default, Sep 9 2014,
15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0
(clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or
"license" for more information.
>>>
8. >>> 5 + 4
9
>>> name = 'Ellen'
>>> print name
Ellen
>>>
10. Virtual Machine
Develop in the same environment, on the same OS as
your web server
Virtual Environment
Keep the dependencies required by different projects
in separate places.
16. • What python is and what it’s used for
• How to start with python
• Libraries - modules and packages
• Development environment
• Web development framework Django