Write a function in Python to create a dictionary from two lists, one of keys and the other one of values.
keys = [1,2,3]
values = ['a','b','c']
def createDict(keys, values):
  dict = {}
  for i in range(len(keys)):
    dict[keys[i]] = values[i]
  return dict