"""
Create a function that takes a variable number of arguments, each argument representing the number of items in a group, and returns the number of permutations (combinations) of items that you could get by taking one item from each group.

Examples
combinations(2, 3) ➞ 6

combinations(3, 7, 4) ➞ 84

combinations(2, 3, 4, 5) ➞ 120
"""


def combinations(*items):
    result = 1
    for number in items:
        if number > 0:
            result *= number
    return result


print(combinations(2, 3, 4, 5))

4ee4a0cd7508de6483e76c61d45371b875d0433e
<mask token>

<mask token>


def combinations(*items):
    result = 1
    for number in items:
        if number > 0:
            result *= number
    return result


<mask token>

<mask token>


def combinations(*items):
    result = 1
    for number in items:
        if number > 0:
            result *= number
    return result


print(combinations(2, 3, 4, 5))

"""
Create a function that takes a variable number of arguments, each argument representing the number of items in a group, and returns the number of permutations (combinations) of items that you could get by taking one item from each group.

Examples
combinations(2, 3) ➞ 6

combinations(3, 7, 4) ➞ 84

combinations(2, 3, 4, 5) ➞ 120
"""


def combinations(*items):
    result = 1
    for number in items:
        if number > 0:
            result *= number
    return result


print(combinations(2, 3, 4, 5))
