input: Write a function to create a dictionary from a list, where the key is the list element and the value is the index+1.
  assert createDict([2, 3, 1]) == {2: 1, 3: 2, 1: 3}
  assert createDict(['a', 'b', 'c']) == {'a': 1, 'b': 2, 'c': 3}
  assert createDict([]) == {}
output: def createDict(lst):
      return {element: index + 1 for index, element in enumerate(lst)}