These are class notes from a Python crash course I teach to my friends and colleagues. I assume little to no prior coding experience, however these notes are not intended as stand-alone material. These are explained in class and normally supplemented with in class exercices and problem sets.
- Introduction
- Installation and
hello world
- Primitive types
- Variables
- Conditional structures
- Functions
- Modules and packages: a quick and dirty primer
- Lists
- Ranges
- Revisiting strings
- List comprehensions
- Tuples
- Dictionaries
- Sets
- Reading from and writing to a file
- Exceptions
- The
datetime
package - The
random
package - Revisiting functions:
*args
and**kwargs
- Decorators
- Creating our own data types
- Advanced object-oriented concepts: inheritence and magic methods
- The incredible power of regular expressions: the
re
package - The
os
package - Creating and installing our own packages
- String formatting: beyond the
str.format()
method
- Parsing
xml