answered 13 years ago
sage: L2a = flatten([[perm]*count for perm, count in zip(Permutations(3), prof)]) sage: L2b = sum(([perm]*count for perm, count in zip(Permutations(3), prof)), []) sage: L == L2a == L2b True
functional 4tw!