import itertools


def find_target(input, target=2020, combinations=2):
    """
    Finds 'combinations' numbers that add up to 2020

    Part 1:
    >>> find_target([1721, 979, 366, 299, 675, 1456])
    (1721, 299)

    Part 2:
    >>> find_target([1721, 979, 366, 299, 675, 1456], combinations=3)
    (979, 366, 675)

    :param input:
    :param target:
    :param combinations:
    :return:
    """

    for x in itertools.combinations(input, combinations):
        if sum(x) == 2020:
            return x