Advanced Python 3 Training (PYT238)
Advance your Python skills with functional programming, regex, data handling, testing, debugging, object-oriented design, inheritance, and decorators.
Register or Request Training
- Private class for your team
- Live expert instructor
- Online or on‑location
- Customizable agenda
- Proposal responses same day as request
- On-Demand 24/7
- Readings, Video Presentations, Exercises
- Quizzes to knowledge check
- Life-Time Access
Course Overview
Designed for experienced Python developers, this advanced course explores techniques for writing efficient, reliable, and maintainable Python 3 applications. Topics include lambda functions, advanced comprehensions, collections, mapping and filtering, sorting, sequence unpacking, modules, packages, and regular expressions.
You will also work with relational databases, CSV files, web data, XML, JSON, testing, and performance measurement. The course concludes with an in-depth examination of object-oriented Python, including properties, inheritance, class and static methods, abstract classes, and decorators.
Through practical exercises, you will apply these concepts to data processing, debugging, testing, and class design.
Course Benefits
- Lambda functions.
- Advanced list comprehensions.
- The
collectionsmodule. - Mapping and filtering.
- Sorting sequences.
- Unpacking sequences in function calls.
- Modules and packages.
- Understanding regular expressions.
- Python's
remodule. - Data stored in a relational database.
- Data stored in a CSV file.
- Data from a web page.
- HTML, XML, and JSON.
- Accessing an API.
- Testing performance with timers and the
timeitmodule. - The
unittestmodule. - Classes and objects in Python.
- Instance methods, class methods, and static methods.
- Properties.
- Decorators.
- Subclasses and inheritance.
Delivery Methods
Delivered for your team at your site or online.
Learn at your own pace with 24/7 access.
Course Outline
- Advanced Python Concepts
- Lambda Functions
- Advanced List Comprehensions
- Exercise: Rolling Five Dice
- Collections Module
- Exercise: Creating a defaultdict
- Counters
- Exercise: Creating a Counter
- Mapping and Filtering
- Mutable and Immutable Built-in Objects
- Sorting
- Exercise: Converting list.sort() to sorted(iterable)
- Sorting Sequences of Sequences
- Creating a Dictionary from Two Sequences
- Unpacking Sequences in Function Calls
- Exercise: Converting a String to a datetime.date Object
- Modules and Packages
- Regular Expressions
- Regular Expression Tester
- Regular Expression Syntax
- Python's Handling of Regular Expressions
- Exercise: Green Glass Door
- Working with Data
- Virtual Environment
- Relational Databases
- Passing Parameters
- SQLite
- Exercise: Querying a SQLite Database
- SQLite Database in Memory
- Exercise: Inserting File Data into a Database
- Drivers for Other Databases
- CSV
- Exercise: Finding Data in a CSV File
- Creating a New CSV File
- Exercise: Creating a CSV with DictWriter
- Getting Data from the Web
- Exercise: HTML Scraping
- XML
- JSON
- Exercise: JSON Home Runs
- Testing and Debugging
- Testing for Performance
- Exercise: Comparing Times to Execute
- The unittest Module
- Exercise: Fixing Functions
- Special unittest.TestCase Methods
- Classes and Objects
- Attributes
- Behaviors
- Classes vs. Objects
- Attributes and Methods
- Exercise: Adding a roll() Method to Die
- Private Attributes
- Properties
- Exercise: Properties
- Objects that Track their Own History
- Documenting Classes
- Exercise: Documenting the Die Class
- Inheritance
- Exercise: Extending the Die Class
- Extending a Class Method
- Exercise: Extending the roll() Method
- Static Methods
- Class Attributes and Methods
- Abstract Classes and Methods
- Understanding Decorators
Class Materials
Each student receives a comprehensive set of materials, including course notes and all class examples.
Class Prerequisites
Experience in the following is required for this Python class:
- Basic Python programming experience. In particular, you should be very comfortable with:
- Working with strings.
- Working with lists, tuples and dictionaries.
- Loops and conditionals.
- Writing your own functions.
Experience in the following would be useful for this Python class:
- Prior exposure to HTML, XML, JSON, and SQL is helpful but not required.
Prerequisite Courses
Courses that can help you meet these prerequisites:
Follow-on Courses
Have questions about this course?
We can help with curriculum details, delivery options, pricing, or anything else. Reach out and we’ll point you in the right direction.
