[PYTHON] Multiple key items using tuples as dictionary keys

>>> a = { ('key1','key2') : 'ahoo' }
>>> a
{('key1', 'key2'): 'ahoo'}
>>> a[('key1','key2')]
'ahoo'

Recommended Posts

Multiple key items using tuples as dictionary keys
Get multiple maximum keys in Python dictionary type
Dictionary items method