Is there any reason why you use array and not
Usage of array look at this answer.
list
(common way in most cases)?Usage of array look at this answer.
>>> lst = ['g','e','e','k'] >>> lst ['g', 'e', 'e', 'k'] >>> type(lst) <class 'list'> >>> >>> ''.join(lst) 'geek'