python is a
popular general-purpose programming language
- dynamically typed and garbage-collected
python supports
structured (or procedural), object-oriented, and functional programming
python has great
extensibility with thousands of modules supporting wide range of functions
python uses ________, rather than ________
whitespace indentation, {} or keywords to delimit code blocks
pros of python-based server-side development
cons of python-based server-side development
python comments
begin with #
t/f: you can do single or multi line comments in python
false. multi-line not allowed
variable naming rules
global variables
variables created outside of a function
if a variable created inside a function has the same name as a global variable:
this variable is local, and can only be used inside the function