I have this dictionary here:
dictionary = {
'cat':3,
'dog':8,
'mouse':4
}
I wish to do something along the lines of saying "dictionary[1]" and having it return the value 8. I would like to do this without having to change the keys of the dictionary. Is there a clean way to do this? Thanks!