lst = ['shit','turd','poop'] lst1 = dict(zip(lst, range(len(lst)))) print(lst1)