i have:
letters = ['h','e','l','l','o']
and i need:
'h e l l o'
so I've tried using a for loop as follows:
new_str = ''
for str in letters:
new_str += str + ' '
however, the result is:
new_str = 'h e l l o '
is there a way to do this without the empty string after the o? as in without doing something after i already get the result.
Sorry i forgot to mention if there's a way to do this by iterating over the list.