Q:

How to add set elements to a string in python

how would I add set elements to a string in python? I tried:
sett = set(['1', '0'])
elements = ''
for i in sett:
       elements.join(i)

but no dice. when I print elements the string is empty. help

A:

I believe you want this:
s = set(['1', '2'])

asString = ''.join(s)

Be aware that sets are not ordered like lists are.  They'll be in the order added typically until something is removed, but the order could be different than the order you added them.

