Write a Python program that concatenates all elements in a list into a string and returns it.
Write a Python program that concatenates all elements in a list into a string and returns it.
Program
def myfun(list_data):
result = ''
for element in list_data:
result += str(element)
return result
if __name__=="__main__":
print(myfun([12, 53, 24, 3]))