Sorry for this basic question but my searches on this are not turning up anything other than how to get a dictionary\'s key based on its value which I would prefer not to us
You can do this by casting the dict keys and values to list. It can also be be done for items.
Example:
f = {'one': 'police', 'two': 'oranges', 'three': 'car'} list(f.keys())[0] = 'one' list(f.keys())[1] = 'two' list(f.values())[0] = 'police' list(f.values())[1] = 'oranges'