Exercise: Count total number of characters of dictionary keys
Loop through the keys of the capitals dictionary and calculate their total number of characters. Increment the variable num_char by the length of each key in every iteration.
Premium
Python
Setting up Python environment...
Output