I want to print possible combinations to a string of all lengths
import itertools
string = input()
l1 = [ ]
for i in string:
l1.append(i)
combo = []
combo = [itertools.combinations(l1,i) for i in range(len(l1))] #i want to resolve this line
print(combo)
try this
import itertools
string = input()
l1 = [i for i in string ]
combo = [list(itertools.combinations(l1,i)) for i in range(len(l1))]
print(combo)