Learn
Code Challenge: Dictionaries
Even Keys

sum_even_keys()

Instructions

1.

Create a function called sum_even_keys that takes a dictionary named my_dictionary, with all integer keys and values, as a parameter. This function should return the sum of the values of all even keys.

Folder Icon

Sign up to start coding

Already have an account?