Discover the power and convenience of higher-order functions in Python's standard library. You will learn about various Python techniques and functions that enable more functional approaches to Python programming.
Overview
Syllabus
- Lesson 1: Exploring the map Function
- Converting Numbers to Strings Using map
- Converting List of Names to Uppercase Using Map
- Converting Celsius to Fahrenheit with map and lambda
- Calculate Totals with Map Function
- Lesson 2: Exploring the reduce Function
- Using reduce to Compute Product of List Elements
- Concatenate Names Using Reduce
- Combining Lists Using reduce
- Find the Smallest Element Using Reduce
- Find the Longest Word using reduce
- Calculate GCD of a List
- Concatenate Strings Using reduce with a Starting Value
- Lesson 3: Exploring the filter Function
- Add Filtering Criteria for Even Numbers Greater Than 5
- Filter Uppercase Strings
- Filtering Words Starting with a Vowel
- Filtering Palindromes with Predefined Function
- Lesson 4: Exploring the sorted Function
- Change Sorting Order to Descending
- Sort a List of Books by Page Count
- Sort Products by Price in Descending Order
- Sorting Books by Year and Title
- Sorting Products by Price and Rating
- Lesson 5: Combining Functions
- Refactor to Combine Functions in One Line
- Processing and Combining Strings Using Higher-Order Functions
- Find Maximum Temperature in Fahrenheit
- Calculate Total High Revenue from Sales
- Analyzing and Discounting Product Prices