A dictionary can be used to translate small integer or number word into Roman numerals as follows:
>>> numerals = {'one':'I', 'two':'II', 'three':'III', 'four':'IV', 'five':'V',
'six':'VI', 'seven':'VII', 'eight':'VIII',
1: 'I', 2: 'II', 3: 'III', 4:'IV', 5: 'V', 6:'VI', 7:'VII', 8:'VIII'}
>>> for i in ['three', 'four', 'five', 'six']:
... print(numerals[i], end=' ')
...
III IV V VI
>>> for i in range(8,0,-1):
... print(numerals[i], end=' ')
VIII VII VI V IV III II I
Note that even though the keys are stored in an arbitrary order, the dictionary can be indexed in any order. Note also that although the dictionary keys must be unique, the dictionary values need not be.