Fast Track to Python - Session 2


Details
Prerequisites
Experience in some other programming language, Python experience not required. If you want to follow along with the exercises, bring along a laptop.
Description
This 5 session class introduces you to the Python programming language, quickly introducing you to the main points of the language and moving on to advanced Python constructs and some of the most important libraries.
In this class you’ll learn
• Basic Python syntax
• Modularity in Python
• Basic text processing
• Python support for object-oriented programming
• Python support for resource management and iteration
• Packaging your code for reuse and distribution
• Concurrent programming
• Network and web programming
• Python unit testing
Session 2: Advanced Python Syntax
Lecture 4: Using Modules
Exercise 4: Using modules
Exercise 4.1: Using the sys module
Exercise 4.2: Exploring the system using the os module
Exercise 4.3: Using the math module
Exercise 4.4: Working with dates and times
Exercise 4.5: Faking files with StringIO
Exercise 4.6: Using the pdb debugger
Exercise 4.7: Using introspection to explore hashlib
Exercise 4.8: Building your own module
Exercise 4.9: Building your own package
Lecture 5: String processing in Python
Exercise 5: Strings
Exercise 5.1: String interpolation
Exercise 5.2: Simple string operators
Exercise 5.3: Regular expressions with the re module
Lecture 6: Modularity
Exercise 6: Packages and modules
Exercise 6.1: Building a module
Exercise 6.2: Building a package
Lecture 7: Object-oriented programming
Exercise 7: Object-oriented programming
Exercise 7.1: Defining a class
Exercise 7.2: Exploring inheritance
Exercise 7.3: Method access, visibility, and conventions
Exercise 7.4: Magic methods overview
Lecture 8: Decorators
Exercise 8: Decorators
Exercise 8.1: Log all calls to a function
Exercise 8.2: Parametrically log calls to a function
Exercise 8.3: Class decorators: log calls to all public methods

Fast Track to Python - Session 2