To map list of integers to list of strings I would use a dictionary, for example:
> name_number = {'michael':1, 'michael':1, 'alice':2, 'carter':3}
> print len(name_number)
3
> print name_number['alice']
2
Note that len(name_number)
is 3
, because duplicate keys are not allowed.