I have a list of sets like this:
set_list = [{1, 2, 3}, {4, 5, 1, 6}, {2, 3, 6}, {1, 5, 8}]
Now I want to merge all of the sets together and return a set of all sets like this:
final_set = {1, 2, 3, 4, 5, 6, 8}
I have used this code but it is not working correctly:
tmp_list = []
final_set = set(tmp_list.append(elem) for elem in set_list)
What should I do?