In python 2.6, When I tried to convert a set to a list using the below code:
first_list = [1,2,3,4]
my_set=set(first_list)
my_list = list(my_set)
I'm getting error like this:
Traceback (most recent call last):
File "<console>", line 1, in <module>
TypeError: 'set' object is not callable
Can anyone suggest to me some ways to fix this?