human
Give me a Python code to return a list that behaves as an array.
assistant
Here is a Python code to return a list of items that behave as arrays

import numpy as np

def list_to_array(list_of_list):
    """Converts a list of list to a numpy array."""
    return np.array(list_of_list)

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

# Calling the function
array = list_to_array(list_of_list)

# Printing the array
print(array)

#Example Output
# [[1 2 3]
#  [4 5 6]]

#Remember to inspect code for bugs.