Python set to list

How can I convert a set to a list in Python? Using

a = set(["Blah", "Hello"])
a = list(a)

doesn’t work. It gives me:

TypeError: 'set' object is not callable

Leave a Comment