title: How can I generate all multsets of size k from a base list L in Python?
body: <p>Suppose I have the list L of size n >= k in Python. I wish to generate all multisets of size k of the elements of L. Here, by a multiset I mean a subset of L which is allowed to have repeated elements from L. Thanks! </p>