Jan-25-2023, 03:59 AM
Hello, I'm having difficulty getting result running this:
thanks in advance
from itertools import combinations input = ['R1:99','R2:111','R3:71','R4:18','R5:5','R6:10','R7:75','R8:45','R9:26','R10:7','R11:94','R12:100','R13:72','R14:31','R15:110','R16:83','R17:41','R18:51','R19:38','R20:40','R21:78','R22:104','R23:15','R24:93','R25:104','R26:36','R27:106','R28:102','R29:74','R30:14'] output = sum([list(map(list, combinations(input, i))) for i in range(len(input) + 1)], []) print(output)looks like the number of items are too many, is there a way to get this to run?
thanks in advance