input: Write a function to create a Python dictionary from two given lists. The function should take two lists as input and return a dictionary where the keys are elements from the first list and the values are elements from the second list. If the lists are of different lengths, the function should return an empty dictionary.
  
  assert create_dict(['a', 'b', 'c'], [1, 2, 3])=={'a': 1, 'b': 2, 'c': 3}
  assert create_dict(['a', 'b'], [1, 2, 3])=={}
  assert create_dict([1, 2, 3], ['a', 'b', 'c'])=={1: 'a', 2: 'b', 3: 'c'}
  assert create_dict([], [])=={}
output: def create_dict(keys, values):
      if len(keys) != len(values):
          return {}
      return dict(zip(keys, values))