← Code

Deeper Python in the console

Text, lists and errors, then a text adventure that saves.

Start1. Working with text
For teachers Usually Years 9–10 · 6 lessons

One idea at a time, in the console: text, lists, dictionaries and errors, then a text adventure built from all of them, saved to a file.

  • Usually Years 9–10
  • Lessons 6
  • Do first Console bridge: text in, text out
Teacher guide

Standards, in general: main focus: Trace algorithms for errors (8P06), Model structured data (8P03); touches on: Acquire and validate data (8P01), Validate algorithms and programs (10P06), Model and query entities and relationships (10P03). What this means

1Working with textNot started

Lists and dictionaries

Keep many things in a list, and look things up by name in a dictionary.

2A bag that growsNot started
3A map of roomsNot started

Errors and the adventure

Catch mistakes with try and except, build a text adventure in milestones, then save it to a file.

Progress is saved in this browser only. Nothing is sent anywhere.

For teachers: Teacher guide (notes, answers, solutions, slides and worksheets)