糖心Vlog

Please consent to cookies to view content.

' ); iframeDoc.close(); } } } } } const observer = new MutationObserver(switchSrc); observer.observe(document.documentElement, { childList: true, subtree: true, }); })();

糖心Vlog

Last updated

30 November 2026

pptx, 229.37 KB
pptx, 229.37 KB
docx, 91.03 KB
docx, 91.03 KB
pdf, 123.2 KB
pdf, 123.2 KB
docx, 91.28 KB
docx, 91.28 KB
pdf, 127.12 KB
pdf, 127.12 KB
docx, 90.14 KB
docx, 90.14 KB
jpg, 143.6 KB
jpg, 143.6 KB

Most students have used a Python dict, but very few know how a dictionary works underneath, and that鈥檚 what Paper 4 can ask for. In this lesson they build a dictionary ADT from two parallel arrays, Keys[] and Values[], with proper checks for duplicates and a full dictionary.

They finish by comparing it line by line with Python鈥檚 built-in dict, so they鈥檙e comfortable writing either in the exam.

What鈥檚 included

  • 16-slide editable teacher PowerPoint, with speaker notes on every slide
  • Python starter code with guided TODOs and the full tested solution, in a Word file ready to copy into your editor (including a RemoveItem extension)
  • Student worksheet (37 marks) in Word and PDF: key terms, a trace table, fill-the-gap code, spot-the-errors and exam-style questions
  • Full answer key in Word and PDF

How the lesson runs

  • A starter on looking up a word
  • What a dictionary ADT is, with the two arrays shown
  • Key vocabulary: key, value, pair and duplicate key
  • FindKey, AddItem, GetValue and UpdateValue step by step
  • A spot-the-bug slide on searching unused slots
  • A trace-table mini task with answers
  • Our ADT versus Python鈥檚 dict
  • A coding task, exam-style question with mark scheme, and exit ticket

Written for Cambridge International AS & A Level Computer Science (9618), Paper 4 Practical, and pitched at A Level (Year 13). Everything is editable, so you can adapt it for your own classes.

Please leave a review if you find it useful. It really helps!

Reviews

Something went wrong, please try again later.

This resource hasn't been reviewed yet

To ensure quality for our reviews, only customers who have purchased this resource can review it

to let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.