This Advanced Python course is designed for experienced Python developers looking to deepen their understanding and master advanced programming concepts. The course covers a wide range of topics, including functional programming, data manipulation, testing, debugging, and object-oriented programming, equipping you with the skills to write efficient, robust, and scalable Python code.
The course begins with Advanced Python Concepts, where you'll explore lambda functions, advanced list comprehensions, and the collections
module, including creating defaultdict
and counters. You'll also learn about mapping and filtering, mutable and immutable objects, and various sorting techniques. This module includes hands-on exercises to practice creating dictionaries, unpacking sequences, and converting data types. You'll also gain insights into working with modules and packages for efficient code management.
Next, you'll dive into Regular Expressions, learning how to use Python's regular expression syntax and tools to search, match, and manipulate text. You'll use the regular expression tester, understand Python's handling of regex patterns, and complete exercises like the "Green Glass Door" challenge to apply your skills in practical scenarios.
The Working with Data module focuses on managing and manipulating different types of data in Python. You'll start by setting up a virtual environment and working with relational databases like SQLite. The course includes exercises for querying databases, inserting data, and using drivers for other databases. You'll also explore working with CSV files, scraping data from the web, and handling XML and JSON formats, with practical exercises on each topic.
In Testing and Debugging, you'll learn best practices for writing robust code, testing for performance, and using the unittest
module. You'll also explore special testing methods and complete exercises to practice debugging, fixing functions, and optimizing code performance.
The course covers Classes and Objects in depth, providing a thorough understanding of object-oriented programming in Python. You'll learn about attributes, methods, inheritance, and decorators, as well as how to implement static and abstract methods. Hands-on exercises will guide you through creating and extending classes, using private attributes, and documenting your code effectively.
By the end of this Advanced Python course, you will have developed a comprehensive skill set that enables you to tackle complex programming tasks, manage data efficiently, and create well-structured, maintainable code. You'll be ready to apply these advanced Python techniques in real-world projects and professional environments.
- 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.
Private classes are delivered for groups at your offices or a location of your choice.
Learn at your own pace with 24/7 access to an On-Demand course.
- 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
Each student will receive a comprehensive set of materials, including course notes and all the class examples.
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.
Courses that can help you meet these prerequisites:
Live Private Class
- Private Class for your Team
- Live training
- Online or On-location
- Customizable
- Expert Instructors
Self-Paced Course
- On Demand 24/7
- Readings
- Presentations
- Exercises
- Quizzes
- Full Year of Access
- Learn more