How do you append the elements of a set to a list in Python in the most succinct way?
>>> a = [1,2] >>> b = set([3,4]) >>> a.append(list(b)) >>> a [1, 2, [3, 4]]
But what I want is:
[1, 2, 3, 4]