@William33/

RecentHeftyTern-10

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
from itertools import combinations
lis = [1,2,3,4,5,6,7,8,9]

for i in (3, len(lis)):
    for comb in combinations(lis, i):
       if sum(comb) == 10:
           print (comb,'= 10')