The problem with:
ret = ""
for s in strings:
ret += s
is that it re-allocates O(n) times, even if ret is referenced only once.