In [1]:
studentIds = {'knuth': 42.0, 'turing': 56.0, 'nash': 92.0 }
In [2]:
studentIds['turing']
Out[2]:
In [3]:
studentIds['nash'] = 'ninety-two'
In [4]:
studentIds
Out[4]:
In [5]:
del studentIds['knuth']
In [6]:
studentIds
Out[6]:
In [7]:
studentIds['knuth'] = [42.0,'forty-two']
In [8]:
studentIds
Out[8]:
In [9]:
studentIds.keys()
Out[9]:
In [10]:
studentIds.values()
Out[10]:
In [11]:
studentIds.items()
Out[11]:
In [14]:
help(dict.items)
In [16]:
dir(dict)
Out[16]:
In [ ]: