Sebuah dictionary (map, array asosiatif) nyimpen asosiasi key → value, ngowahi sampeyan kanggo nggoleki value dening key-ne ing rata-rata O(1). Sebuah set sejatine map karo key nanging tanpa value — mung nyimpen participation.
Contoh
python
text = .split()
counts = {}
word text:
counts[word] = counts.get(word, ) +
ages = {: , : }
ages[]
ages[] =
ages
