Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Dictionary basics
Dictionaries in loops and conditional statements
Dictionaries in functions
Summary
18. 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.