python-basic | Development notes
Basic operations in Python
loops
- for - common map iterator
-
for - inline
syntax:
val = [thing for thing in list_of_things]
-
for - range elements
for x in range(0, 3): print x
input/output
- read an string stream, parse to int and print
Ex. input: '0 3 1'