I was wondering if there is any way in python to sum values of a dictionary to see if any particular sum is equal to a given X. This sum can have up to five elements. Thanks