How to remove the square brackets from array to string?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By OiKeTTLe

As the title suggests, I’m setting a label’s text to the string of an array. The issue is, it includes the brackets in said array. Any fixes? In addition, if anyone is willing to help, how can I convert this array to a list instead?

:bust_in_silhouette: Reply From: Gluon

You can do something like this

var array = ["1", "2", "3"]
var st = ""
for i in array:
	st = st + str(i)
print(st) 

to iterate over an array and add it to a string