Nor the set
nor the list
has such method join
, string has it:
','.join(set(['a','b','c']))
By the way you should not use name list
for your variables. Give it a list_
, my_list
or some other name because list
is very often used python function.