# write a function called two_list_dictionary which accepts two lists of varying lengths. The first list consists of
# keys and the second one consists of values. Your function should return a dictionary created from the keys and values.
# If there are not enough values, the remaining keys should have a value of null. If there not enough keys, just ignore
# the remaining values.

def two_list_dictionary(keys, values):
    if len(keys) > len(values):
        for i in range(0, len(keys) - len(values)):
            values.append(None)
    return dict(zip(keys, values))



print(two_list_dictionary(['a', 'b', 'c', 'd'], [1, 2, 3]))    # {'a': 1, 'b': 2, 'c': 3, 'd': None}
print(two_list_dictionary(['a', 'b', 'c']  , [1, 2, 3, 4]))    # {'a': 1, 'b': 2, 'c': 3}
print(two_list_dictionary(['x', 'y', 'z']  , [1,2]))           # {'x': 1, 'y': 2, 'z': None}
