Create a python function that stores the elements of a list in a dictionary.
list = ['apple', 'orange', 'banana']
def list_to_dict(list):
    dictionary = {}
    for item in list:
        dictionary[item] = 0

    return dictionary