Write a python program to combine two lists in a dictionary. The dictionary should have the first list as keys and the second list as the corresponding values.
list1 = [1,2,3]
list2 = [4,5,6]
def list_to_dict(keys, values):
 result = {}
 for i in range(len(keys)):
  result[keys[i]] = values[i] 
 return result