Write a Python program to create a dictionary from a given list of integers that contains elements from 1 to the given number.
number = 5
def create_dict(number):
    dict_N = dict()
    for i in range(1, number+1):
        dict_N[i] = i

    return dict_N

dict_N = create_dict(5)
print(dict_N)