input: Write a function to create a dictionary from two given lists. The function should zip the two lists together and convert them into a dictionary. If the lists are not of equal length, it should handle this case by taking only the corresponding elements from both lists up to the length of the shorter list.
  
  def create_dict_from_lists(list1, list2):
      return dict(zip(list1, list2))
  
  assert create_dict_from_lists(['a', 'b', 'c'], [1, 2, 3]) == {'a': 1, 'b': 2, 'c': 3}
  assert create_dict_from_lists([], [1, 2, 3]) == {}
  assert create_dict_from_lists(['a', 'b', 'c'], []) == {}
  assert create_dict_from_lists(['a', 'b'], [1, 2, 3]) == {'a': 1, 'b': 2}
  assert create_dict_from_lists(['a', 'b', 'c'], [1, 2]) == {'a': 1, 'b': 2}
  assert create_dict_from_lists([1, 2, 3], ['a', 'b', 'c']) == {1: 'a', 2: 'b', 3: 'c'}
  assert create_dict_from_lists(['a'], ['b']) == {'a': 'b'}
output: def create_dict_from_lists(list1, list2):
      return dict(zip(list1, list2))