> I have a list where each element is another list with two elements. > What is the best way to convert this to a dictionary? It's hard to beat a for loop: d = {} for key, value in l: d[key] = value Alex.