Write a function to concatenate a list of strings into a single string. For example:
Input: (["this ", "is ", "a ", "string"])
== Output: "this is a string"
This is the code I have so far but it always returns with the ", " in the result which I have no idea how to get rid of it.
def concat(strings):
list1 = []
i = 0
while i < len(strings):
list1 += [strings[i]]
i+=1
return (list1)