Lecture 5: Python
Lecture 5:
Python
PYTHON
208
Python
? developed ~1991 by Guido van Rossum
- CWI, Amsterdam => ... => Google => Dropbox
? "I was looking for a 'hobby' programming project that would keep me occupied during the week around Christmas. My office ... would be closed, but I had a home computer, and not much else on my hands. I decided to write an interpreter for the new scripting language I had been thinking about lately: a descendant of ABC that would appeal to Unix/C hackers. I chose Python as a working title for the project, being in a slightly irreverent mood (and a big fan of Monty Python's Flying Circus)."
Guido von Rossum
Python constructs
? constants, variables, types ? operators and expressions ? statements, control flow ? aggregates ? functions, libraries ? classes, objects, modules ? etc.
Constants, variables, operators
? constants
- integers, floats, True/False - `string', "string", r'...', r"...", `''potentially multi-line
string'''
no difference between single and double quotes r'...' is a raw string: doesn't interpret \ sequences within
? variables
- hold strings or numbers, as in Awk
no automatic coercions; interpretation determined by operators and context
- no declarations (almost) - variables are either global or local to a function (or class)
? operators
- mostly like C, but no ++, --, ?: - relational operators are the same for numbers and strings - string concatenation uses + - format with "fmt string" % (list of expresssions)
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- marketing management pdf lecture notes
- strategic management lecture notes pdf
- strategic management lecture notes
- spyder python 3 5 download
- python 3 8 5 download 64 bit
- python 3 5 download for windows 10
- python 2 7 5 pip
- anaconda python 3 5 download
- python 3 8 5 pip
- centos 6 5 python 2 7
- download python 3 5 for windows
- anaconda python 3 5 version