Skip to main content

8.9) Exercise 22 - Dictionaries


  1. Write a dictionary to store the results of a game. You have three players: 'Joe', 'Helena' and 'Tom'. Assign them scores from 0 to 21. Add three points to Helena’s score
  2. Write a dictionary of the name of the planets in our solar system where keys are the position relative to the sun. How do you print the name of the 4th planet from the sun?
  3. Write a dictionary with the name of the planets as keys and their position as values. Print the position of the Earth relative to the sun. Print the list of planet names