I have some code which is essentially this:
data = [\"some\", \"data\", \"lots\", \"of\", \"strings\"] separator = \".\" output_string = \"\" for datum in d
If the separator is a variable you can just use variable.join(iterable):
variable.join(iterable)
data = ["some", "data", "lots", "of", "strings"] separator = "." print(separator.join(data)) some.data.lots.of.strings