OutClassLearn / lesson.pyConcept preview
Python foundations / Working with collections
lesson.py ×
1  def summarize(records):
2      totals = {}
3      for name, minutes in records:
4          totals[name] = totals.get(name, 0) + minutes
5      return totals
6
7  today = [("reading", 45), ("coding", 90)]
8  print(summarize(today))
TERMINAL  OUTPUT

› python lesson.py

{ "reading": 45, "coding": 90 }

✓ Process finished

OutClass Learn

Turn lessons into real ability.

Follow the lesson, write the code, and build something of your own with help from AI that understands what you’re learning.

OutClassLearn
Python foundations / Lesson 4

Working with data

Working
with data
▶   8:24
OverviewNotesResources

Use lists and dictionaries to work with a real dataset.

OutClassLearnPython foundations

Working with data

LessonCodePracticeProject
lesson.py▷ Run
1  def summarize(records):
2      totals = {}
3      for name, minutes in records:
4          saved = totals.get(name, 0)
5          totals[name] = saved + minutes
6      return totals
✓ All tests passed3 / 3
Blueprint

Help me build a study tracker.

Study tracker

  1. Define the first version
  2. Log study sessions
  3. Build a weekly summary
  4. Test with real data
Explore OutClass Learn
OutClass Educator

Build, create, and grow your courses.

Design a course in Academy, bring lessons to life in Creator Studio, and launch them with GTM.

OutClassAcademy
Courses / CS101

Computer Science Fundamentals

CurriculumResources
  • Chapter 1: Foundations1. Getting started2. Working with data3. Control flow
  • Chapter 2: Data structures
Atlas · Plan the curriculum
Forge · Add a practice exercise
OutClassCreator StudioCS101 Launch
Projects / CS101 Launch

Lesson 3: Data structures

↗   Send to GTM
ScriptScenesCaptionsAssets
Scenes▶Intro▤Arrays and lists◇Stacks and queues
CS101Data
structures
▶   0:00 / 8:24
IntroArrays and listsStacks and queues
Muse · “Show the array before introducing the syntax.”
OutClassGTM
Campaigns / Draft

CS101 Launch

LinkedInXYouTube
OutClassDraft preview

Meet CS101, our hands-on introduction to computer science. Start with Python and build your first API.

CS101▶   Course preview
Signal · Tailor the LinkedIn draft
Get OutClass Educator

Meet your agents.

Pricing

Start free.

Get Learn and Educator for Windows. Add hosted AI with OutClass Plus.

Learn and Educator

Free Windows desktop

  • Local courses, code, and projects
  • Academy, Creator Studio, and GTM
  • Use a personal AI key or compatible local model

Personal AI providers may charge separately.

Get the free apps

OutClass Plus Test preview

C$12 / month

  • Up to 600 hosted AI answers per month
  • Available to approved test accounts
  • Stripe test checkout

Test checkout collects no real payment.

See the AI preview

The AI Learning Platform

OutClass

Get OutClass