Advanced Python: Classes and Functions
2h 17mAdvanced2024-08-12
Authors

Joe Marini
Senior Developer Advocate at Google, Developer
Course details
Python has become the language of choice of many developers for building all kinds of applications across a wide range of industries, but to fully take advantage of its power and flexibility, you need to master all its advanced functionality. Python is a flexible, customizable language that provides features that other languages support only through third-party libraries or require that you build yourself. In this course, Joe Marini takes you through some of the more advanced features of the Python language. Joe shows you how to write code that is easier to read and maintain, build classes that work just like the ones that are native to the language, and work with some of the newest features of the language itself, like structural pattern matching. If you're ready to take your Python skills to the next level, join Joe in this course.
Skills covered
AdvancedPythonProgramming LanguagesOpen SourceSoftware Development
Concepts
Introduction
- Introduction
- Getting set up
- Tour of CoderPad
Language Features
- Python coding style
- Understanding strings vs. bytes
- The assignment expression
- Boolean types and values
- Template strings
Advanced Functions
- Documentation strings
- Variable argument lists
- Lambda functions
- Keyword-only arguments
- Solution - Advanced Functions
Python Comprehensions
- Introduction to comprehensions
- List comprehensions
- Dictionary comprehensions
- Set comprehensions
- Solution - Comprehensions
Classes and Objects
- Python classes overview
- Defining enumerations
- Special methods - string values
- Special methods - computed attributes
- Special methods - operations
- Special methods - comparisons
- Solution - Special Methods
Structural Pattern Matching
- Overview of pattern matching
- Simple patterns
- Capture patterns
- Class patterns
- Sequence patterns
- Pattern guards
- Solution - Patterns
Conclusion
- Next steps