>>>?b={}
>>>?[b.setdefault(x,y)?for?x,y?in?enumerate(a)]
['one',?'two',?'three']
>>>?b
{0:?'one',?1:?'two',?2:?'three'}
>>>