Skip to content

Night 19: The pet shop

← 30 Code Nights · Language: Python Pseudocode

Tonight: the pet shop

  • Your pet goes shopping! The shop keeps its prices in a dictionary.
  • You will learn one thing: how to loop over a dictionary.

Words for tonight

Word Meaning
price how much something costs
shop a place where you buy things
total all the numbers added together

Handout

Log in or create account

IGCSE, A-Level & AP