2. Introduction to Python
What is Python?
Interpreted Object-oriented
High-level
programming
language
Dynamic
semantics
Guido van Rossum
Monty Python's Flying Circus
3. Introduction to Python
Python
goals
A hobby
programming
project
mature
&
trustworthy
easy and intuitive open source
understandable
suitable for
everyday tasks
4. Introduction to Python
Why Python?
Easy to understand
it's often easier to
understand someone else's
code faster
Easy to learn
he time needed to learn Python
is shorter than for many other
languages
Easy to obtain
Python is free, open and
multiplatform
Easy to
use
Easy to
understand
Easy to
teach
Easy to
learn
Easy to
obtain
Easy to teach
the teaching workload is
smaller than that needed by
other languages
Easy to use
it's often possible to write
code faster when using
Python
5. Introduction to Python
Why not Python?
Ruby Perl
Perl is more
traditional and more
conservative than
Python
Ruby is more
innovative and
more full of fresh
ideas than Python
low-level programming
• if you want to implement an extremely effective driver or
graphical engine, you wouldn't use Python;
applications for mobile devices
• although this territory is still waiting to be conquered by Python,
it will most likely happen someday.
6. Introduction to Python
Python 2 vs. Python 3
• These two versions aren't compatible with each other.
• Python 3 isn't just a better version of Python 2
• Python 3 is a completely different language
7. Introduction to Python
CPython, Cython, Jython, PyPy,
RPython
Python aka CPython
• is written in the "C" language
• the most influential Python
• this course will focus on CPython
Cython
• to automatically translate the Python code into "C" code
Jython
• a Python written in Java
• the current implementation follows Python 2
PyPy
• Python within a Python
• written in Python-like language named RPython
• is compatible with the Python 3