Python Dictionary Exercises


Test Yourself With Exercises

Now you have learned a lot about dictionaries, and how to use them in Python.

Are you ready for a test?

Try to insert the missing part to make the code work as expected:


Test Yourself With Exercises

Exercise:

Use the get method to print the value of the "model" key of the car dictionary.

car =	{
  "brand": "Ford",
  "model": "Mustang",
  "year": 1964
}
print()

Go to the Exercise section and test all of our Python Dictionary Exercises:



Login
ADS CODE