First time here? Check out the FAQ!
answered 2011-06-02 13:07:42 +0100
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!