'Write a function that accepts a list of strings and concatenates them

Write a function called concat() that takes a list of strings as an argument and returns a single string that is all the items in the list concatenated (put side by side). (Note that you may not use the join() function.)

Sample run:

print( concat(['a', 'bcd', 'e', 'fg']) )
abcdefg


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source