OIM3640 - Problem Solving and Software Design

2026 Spring

Session 17 (3/26)

contain

Today's Agenda

  • Announcements/Updates
  • Cheat Sheet Review
  • Quiz 2: Data Structures
  • Your Turn: Text Analysis (Ch 12)

Announcements/Updates

  • Quiz 2 today!
  • Next class: Introduction to APIs and JSON
    • Register on OpenWeather and get a free API key before next class
    • Do not share your API key or post it on GitHub
  • Mini Project 2 - start your proposals and prototypes
  • Mini Project - keep working on elective projects
  • Communication
    • Office Hours: Walk-in or by appointment
    • Email: Specify course # in subject, e.g., "OIM3640: GitHub settings"
    • You are required to meet with me at least once this semester
  • Questions?

📋 Cheat Sheet Review

Python 3 Cheat Sheet

Let's walk through the key sections together:

  • Data Types - list, tuple, dict, set
  • List / Tuple / Set / Dict methods and operations
  • String methods
  • Useful Built-ins - sorted(), enumerate(), zip(), range()

Take a few minutes to review your copy now.

📝 Quiz 2: Data Structures

Topics: lists, tuples, dicts, sets, mutability, counting pattern

Time: ~40 minutes

Use your cheat sheet!

📝 Your Turn: Ch 12 Text Analysis

All data structures come together for MP2 prep:

  1. Read a book from Project Gutenberg with open()
  2. Count word frequencies (counting pattern)
  3. Find unique words (set)
  4. Sort by frequency (list of tuples)
  5. Find words that appear exactly once

Use only built-in Python - no external libraries yet!

Before You Leave

  • Any questions?
  • Continue your Learning Log for this week (logs/wk09.md)
  • Work on MP2 - proposal (PROPOSAL.md) + start coding
  • Read Ch 12: Text Analysis
  • Push your work to GitHub

Next session: APIs and JSON

global styles