Coventry University Logo
4061CEM - Programming and Algorithms 1
  • Mapping Data Types
    1

Mapping Data Types

Before you attempt this activity, it is best that you review lecture video two from week four. You can find the video and slides on the module page.

For this activity you will be using the integrated development environment recommended by the module leader. If you need to set up your development environment, it is recommended that you check out the instructions from activity four of week one.

Are You Struggling?

If you have trouble with any of the tasks or want to check your answers are correct, then please make yourself known to a member of staff.

Task 1

For this task you need to create a dictionary with the name module. The dictionary should be populated with the following items/elements of this module, as shown in the table below.

Key Value
code 4061CEM
title Programming and Algorithms 1
leader Dr Ian Cornelius
team ["Dr Daniel Goldsmith"]

Once the dictionary has been created, you need to provide solutions to the following:

  1. Add a member of staff called Mr Terry Richards to the module team
  2. Add a new dictionary key called running and populate it with a value True
  3. Remove the newly created key with an appropriate function