Skip to content

Latest commit

 

History

History

Collections

Collections in Python

This lesson introduces Lists and Dictionaries in Python. Students should have some understanding of collections, but they may not be familiar with dictionaries. This lesson also includes a look into sorting algorithms.

Warm-up Activity

Complete a warm-up activity to kick off the meeting. This warm-up is designed to introduce the topic for the lesson, and give students some hands-on experience. Groups will briefly present at the end.

  1. Provide an overview of the activity
    • Students will work in groups to create a Python program that prints out a playlist
    • Groups will have 15 minutes to complete the five parts of the activity
    • Groups will have to present at the end of that time
  2. Split into breakout rooms, with one instructor per room
  3. Share the instructions with the students
  4. As the students work, monitor their progress
    • Ensure that every student participates
  5. When all groups are complete, bring everybody back to the main room
  6. Have each group present their work

Here is a base version of the Multiplayer Repl the teams should fork.

PowerPoint Presentation

Present the Collections PowerPoint Presentation. Review the presentation ahead of time, including the notes in the slides. There are several animations.

Review Game

Split the group into teams and play the Baamboozle game.

Code-Along Activity

The activity walks through the construction of a sort-by-score application. This should reinforce all of the concepts from the PowerPoint.

Challenges

The challenges task students with building on the sort-by-score application.

Agenda

Activity Time
Warm-up Activity 25m
PowerPoint 20m
Review Game 15m
Break 5m
Code-Along 45m
Challenges 10m