Skip to content

Glossary: Python Basics

.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`.

Where the book teaches it