input: Write a function that takes in two given lists as input and creates a Python dictionary from them. The keys should be from the first list and the values should be from the second list. If the lists have different lengths, the dictionary should be created only up to the length of the shorter list.
  
  
  def create_dict_from_lists(list1, list2):
      return dict(zip(list1, list2))
  
  # Test cases
  assert create_dict_from_lists(['a', 'b', 'c'], [1, 2, 3])== {'a': 1, 'b': 2, 'c': 3}
  assert create_dict_from_lists([], []) == {}
  assert create_dict_from_lists(['a', 'b'], [1]) == {'a': 1}
  assert create_dict_from_lists([1, 2, 3], ['a', 'b']) == {1: 'a', 2: 'b'}
  assert create_dict_from_lists(['x', 'y', 'z', 'w'], [4, 5, 6]) == {'x': 4, 'y': 5, 'z': 6}
  
output: def create_dict_from_lists(list1, list2):
      return dict(zip(list1, list2))