
Advanced Python 3 Training
Course Length: 2 days
Delivery Methods:
Multiple delivery options
Course Overview
This Advanced Python training course picks up where our Introduction to Python course leaves off. This course is for students who have taken the introductory course and are ready to learn more and for students who have some experience programming with Python and are ready to go to the next level. The course was written using Python 3.8, but is relevant for all students using Python 3.
Course Benefits
- Lambda functions.
- Advanced list comprehensions.
- The
collections
module. - Mapping and filtering.
- Sorting sequences.
- Unpacking sequences in function calls.
- Modules and packages.
- Understanding regular expressions.
- Python's
re
module. - 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
timeit
module. - The
unittest
module. - Classes and objects in Python.
- Instance methods, class methods, and static methods.
- Properties.
- Decorators.
- Subclasses and inheritance.
Available Delivery Methods
Private Class
Private classes are delivered for groups at your offices or a location of your choice.
Private classes are delivered for groups at your offices or a location of your choice.
Self-Paced
Learn at your own pace with 24/7 access to an On-Demand course.
Learn at your own pace with 24/7 access to an On-Demand course.
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 will receive a comprehensive set of materials, including course notes and all the 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:
- Some exposure to HTML, XML, JSON, and SQL.
Prerequisite Courses
Courses that can help you meet these prerequisites:
Follow-on Courses
Request a Private Class
- Private Class for your Team
- Online or On-location
- Customizable
- Expert Instructors
Self-Paced Course
$99.90
or 3 coupons
- On Demand 24/7
- Readings
- Presentations
- Exercises
- Quizzes
- Full Year of Access
- Learn more