def mergeDicts(dict1, dict2):
    """
    Merges values from dict2 into dict1.
    If a key exists in both dictionaries, dict2 will overwrite dict1.
    """
    res = {**dict1, **dict2}
    return res