Python 3 string.join() equivalent?
'.'.join()
or ".".join()
.. So any string instance has the method join()
str.join()
works fine in Python 3, you just need to get the order of the arguments correct
>>> str.join('.', ('a', 'b', 'c'))
'a.b.c'
There are method join
for string objects:
".".join(("a","b","c"))