Write a function to return a list of all subsequences of a string in sorted order, excluding the empty string.
Sigiloso
from itertools import combinations def build_subsequences(s): return sorted(''.join(ss) for i in range(1, len(s)+1) for ss in combinations(s, i))