Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exercise: Combine lists

Tomato=78
Avocado=23
Pumpkin=100
Cucumber=17
Avocado=10
Cucumber=10

Write a script called combine_lists.py that takes the two files and combines them adding the values for each vegetable. The expected result is:

Avocado=33
Cucumber=27
Pumpkin=100
Tomato=78