Bring strings, lists, and dictionaries together to tackle problems practitioners face daily. You will count and group values, filter and transform collections with comprehensions, parse raw text into structured records, and aggregate everything into clear summaries and reports.
Overview
Syllabus
Python Tallying and Grouping
- Tally the Fruit Words
- Report the Most Frequent Word
- Group Employees by Department
- Report Group Sizes by Department
Mastering List Comprehensions
- Rewrite the Word Length Loop
- Filter the Temperature Readings
- Clean Up the City List
- Convert Minutes Into Seconds
Parsing Raw Text Data
- Extract Clean Headers from Raw Text
- Build the First Row Record
- Build the Full Record List
- Type Inventory Records
Summarizing Data Records
- Total the Order Prices
- Add the Average Order Line
- Report the Highest and Lowest Orders
- Finish the Order Report Header