Level 1
0 / 100 XP

Section 9 overview

You've learned the building blocks one at a time — variables, conditionals, loops, lists, dictionaries, functions, and strings. Real programs use them together. This section is the bridge from "I understand each concept" to "I can build a small program from scratch."

What "bringing it together" means

A working program is just a few familiar pieces wired up:

  • Data lives in variables, lists, and dictionaries.
  • Logic decides what happens using if / elif / else.
  • Repetition walks through data with for and while loops.
  • Reuse packages steps into functions you can call by name.
  • Output turns results into clear text with f-strings.
Python
scores = [70, 85, 90, 60] def average(nums): return sum(nums) / len(nums) avg = average(scores) status = "pass" if avg >= 70 else "fail" print(f"Average: {avg:.1f} ({status})") # Average: 76.2 (pass)

That tiny program uses a list, a function, an if expression, and an f-string — five sections of learning in six lines.

What you'll do in this section

  • Plan before you code so a blank screen never stops you.
  • Read and trace code by hand to predict output and find bugs.
  • Build three small integrated programs that combine multiple concepts.

Then in the final section you'll take these skills into two full portfolio projects.

Key takeaways

  • Real programs combine variables, logic, loops, functions, and output.
  • Knowing each concept is step one; wiring them together is the goal here.
  • This section is hands-on practice connecting the pieces into working programs.