answered 3 years ago
SetPartitions(range(10), [4,3,3]) will do the job.
SetPartitions(range(10), [4,3,3])