Intern — Middle
Concatenation of list elements into a string
livecode
Task condition
The my_func function takes a list of integers and forms a string in which all the list elements are written consecutively.
def my_func(data: list[int]) -> str:
res = ""
for elem in data:
res += str(elem)
return res