Let\'s say I have a list
l = [\'michael\',\'michael\',\'alice\',\'carter\']
I want to map it to the following:
k = [1,1,2,3
can do it pretty easy without a function :
j - list() for i in range (len(l)) : j.append((l[i],k[i]))