Summary notes of basic Python info, with code examples.
-
Literals
-
Collections (implemented Sequences)
- Array module - alternative to List
- May be needed to interface with C code, otherwise avoid
- Dict
- List
[x,y]
- NumPy module arrays for matrices
- Set and Frozenset
- Tuple
- Array module - alternative to List
-
Basic language
-
OO, packaging and virtual environments
-
Functools
-
Misc
- I/O
- Useful examples
- Useful commands
- Print class doc string
print(double.__doc__)
pass
- do nothing when needed
- Print class doc string
- Tips and tricks