def catenateLoop(strs):
outputString = ""
for strings in strs:
outputString = outputString + strings
print outputString
I'm using the code above to concatenate a list of strings into a single string using a for loop. Right no the code is outputting the correct concatenation, but for some reason the code is not being outputted as a string. For example, catenateLoop(['one', 'two', 'three']) is printing onetwothree instead of 'onetwothree'. I've tried several different formats but I can't seem to figure out why it won't print in a string. Any ideas?