Kamus beberapa nilai per kunci

key = "somekey"
a.setdefault(key, [])
a[key].append(1)
Cheerful Cormorant