8.1 The if-elif-else statement8.2 Structural pattern matching with match8.3 The while loop8.4 The for loop8.4.1 The range function8.5 Controlling range with starting and stepping values8.6 The for loop and tuple unpacking8.7 The enumerate function8.8 The zip function8.9 List, set, and dictionary comprehensions8.9.1 Generator expressions8.10 Statements, blocks, and indentation8.11 Boolean values and expressions8.11.1 Most Python objects can be used as Booleans8.11.2 Comparison and Boolean operators8.12 Writing a simple program to analyze a text file8.13 Refactoring word_count8.13.1 Solving the problem with AI-generated code8.13.2 Solutions and discussionSummary