count was defined as a string. Is this what you wanted
def concat_list(string):
count = ""
for i in string:
count += i
return count
or you can use
def concat_list(string)
return ''.join(string)
3
solved Concatenating items in a list? [duplicate]