human
Write me a Python function to 3 2 list to dictionary.
assistant
Here is a Python function to 3 2 list to dictionary

import numpy as np

def list2dict(list_of_list):
    """
    Convert a list of list to a dictionary
    """
    dict_of_list = {}
    for i in range(len(list_of_list)):
        dict_of_list[i] = list_of_list[i]
    return dict_of_list

# Enter the list
myList = [[1, 2], [3, 4], [5, 6]]

# Calling the function
myDict = list2dict(myList)

# Printing the dictionary
print(myDict)

#Example Output
# {0: [1, 2], 1: [3, 4], 2: [5, 6]}

#Remember to inspect code for bugs.