.items()
Also written: items, .values(), values()
Dictionary methods for looping. `.items()` gives each key-value pair, and `.values()` gives only the values, handy with `sum`.
Also written: items, .values(), values()
Dictionary methods for looping. `.items()` gives each key-value pair, and `.values()` gives only the values, handy with `sum`.