inkfish/proof_pietrzak.py
def sum_combinations(numbers):
    """Add all combinations of the given numbers, of at least one number"""
    combinations = [0]
    for element in numbers:
        new_combinations = list(combinations)
        for element2 in combinations:
            new_combinations.append(element + element2)
        combinations = new_combinations
    combinations.remove(0)  # Remove 0
    return combinations
Add all combinations of the given numbers, of at least one number
Add all combinations of the given numbers, of at least one number
Add all combinations of the given numbers of at least one number
def sum_combinations(numbers):
    combinations = [0]
    for element in numbers:
        new_combinations = list(combinations)
        for element2 in combinations:
            new_combinations.append(element + element2)
        combinations = new_combinations
    combinations.remove(0)  
    return combinations
def sum_combinations ( numbers ) : combinations = [ 0 ] for element in numbers : new_combinations = list ( combinations ) for element2 in combinations : new_combinations . append ( element + element2 ) combinations = new_combinations combinations . remove ( 0 ) return combinations
Add all combinations of the given numbers, of at least one number
Add all combinations of the given numbers of at least one number
"""Add all combinations of the given numbers, of at least one number""" # Remove 0
numbers