Lists let you hold many values together and treat them as a single collection. Beginning with creating lists and accessing elements by position, you will extract sublists with slicing, add and remove items, change and sort contents, check for particular values, and combine lists. These skills prepare you to process collections with loops in the next path.
Overview
Syllabus
Python Lists Fundamentals
- Create Empty and Populated Lists
- Print the First and Last Score
- Count and Slice the Scores
- Reach Into a Nested Grid
Building and Modifying Lists
- Add Tasks by Position
- Merge the Afternoon Tasks
- Take Lunch Off the List
- Finish the Day by Position
Editing and Ordering Lists
- Correct the Mispriced Item
- Update the Middle Prices Together
- Sort the Price List Both Ways
- Sort a Copy and Reverse
Exploring List Queries
- Check the Pantry List
- Count the Poll Votes
- Locate Poll Responses Safely
- Combine Both Voting Rounds