1 / 8
Programming · Grade 11 · Chapter 4

Python Refresher

Warming back up before we tackle OOP.

Here's a problem

A Year Away From Code

It's been a while since we last wrote Python seriously. Some syntax feels automatic, some feels rusty. Before jumping into object-oriented programming, let's make sure the fundamentals are solid.

Discuss before revealing: What Python concept do you feel least confident about right now?
Today's tool

Quick Refresher

Variables, loops, and functions — the building blocks everything else this year depends on. A fast but thorough refresh before we move into classes and objects.

How it looks

Refresher Snippet

# quick recap: loop + function
def total(nums):
  result = 0
  for n in nums:
    result += n
  return result
Let's build it together

Warm-Up Exercises

Quick coding warm-ups to confirm retention before we move into new territory.

Activity: Give 3-4 warm-up exercises covering loops, functions, and basic data structures. Work through as a class or in pairs, timing it to keep pace brisk.
Quick check

What does a for-loop iterate over?

AA single number only
BA sequence, like a list or range
CA function definition
DA comment in the code
Click to reveal answer
Let's discuss

What are you most looking forward to building this year?

With OOP, APIs, and the Innovation Challenge ahead — what's the project idea you're most excited about?

Before you go

Today we learned...

Fundamentals confirmed — now we build toward OOP. Next week: modeling real-world objects in code!