Introduction
Dictionary basics
Dictionaries in loops and conditional statements
Dictionaries in functions
Summary
17. Exercise 1

Instruction

Great, let's get started with something easy!

Exercise

You are given a simple English-German dictionary in the form of a Python dictionary.

  • Correct the value for pig: it should be Schwein without the final 'e'. Do not modify it "directly". Refer to the appropriate key, and assign the correct value.
  • Add a new item: guinea pig, which is Meerschweinchen in German.