<human>:  3 2 list to dictionary.
<bot>:

# Calling the function
d = dict_from_list(list_of_list)

# Printing the dictionary
print(d)

#Example Output
# {0: 2, 1: 4, 2: 6}

#Remember to inspect code for bugs.