Introduction To Python
Introduction To Python
on
Python: Essentials,
Programming and Analytics
Why analysis,
maintenance,
analysis, etc.
server
numerical
•
Python? •
Syntax is clear, easy to read and
learn (almost pseudo code)
Common language
• Intuitive object oriented
programming
• Full modularity, hierarchical
packages
• Comprehensive standard library
for many tasks
• Big community
• Simply extendable via C/C++,
wrapping of C/C++ libraries
• Focus: Programming speed
•
Who uses •
On-line games
Web services
• Applications
Python? • Science
• Instrument control
• Embedded systems
Link:
en.wikipedia.org/wiki/Lis
t_of_Python_software
Python is used for everything!
So who uses For example:
• “massively multiplayer
Python and online role-playing games”
like Eve Online, science
fiction’s answer to World of
what for? Warcraft,
• web applications written in
a framework built on
Python called “Django”,
• desktop applications like
Blender, the 3-d animation
suite which makes
considerable use of Python
scripts,
• the Scientific Python
libraries (“NumPy”),
instrument control and
embedded systems
What sort of
language is
Python?
• Python does not have to be
explicitly compiled but
behind the scenes there is a
Continued… system that compiles
Python into an intermediate
code which is stashed away
to make things faster in
future.
• But it does this without you
having to do anything
explicit yourself.
• So from the point of view of
how you use it you can treat
it as a purely interpreted
language like the shell or
Perl.
• Start implementation in December
1989 by Guido van Rossum (CWI)
• 16.10.2000: Python 2.0
o Unicode support
o Garbage collector
o Development process more
community oriented
• 3.12.2008: Python 3.0
o Not 100% backwards compatible
•
History 2007 & 2010 most popular
programming language (TIOBE Index: is
an indicator of the popularity of
programming languages.)
• Recommendation for scientific
programming (Nature News, NPG,
2015)
• Current version (October 24, 2022):
Python 3.11 (Link:
https://www.python.org/ftp/python/3.
11.0/python-3.11.0-amd64.exe)
• Python 2 is out of support! (Link:
https://python3statement.org/)
11 software principles that
influence the design of Python:
1) Beautiful is better than ugly.
Zen of 2) Explicit is better than implicit.
3) Simple is better than complex.
4) Complex is better than
Python complicated.
5) Flat is better than nested.
6) Sparse is better than dense.
7) Readability counts.
8) Special cases aren’t special
enough to break the rules.
9) Although practicality beats
purity.
10)Errors should never pass
silently.
11)Unless explicitly silenced.
Is Python • For user programs: Python is
fast enough!