Generate a function to create a Python dictionary from two lists.
list_a = [1,2,3]
list_b = ['apple','banana','mango']
def create_dict(a, b):
    dictionary = {}
    for i in range(len(a)):
        dictionary[a[i]] = b[i]
    return dictionary