Joining elements in a list to 1 element

Francesco Guerrieri f.guerrieri at
Thu Aug 23 12:43:54 CEST 2007

On 8/23/07, dimitri pater <dimitri.pater at> wrote:
> Dear all,
> I am having trouble joining elements in a list into 1 element.
> e.g. ['a','b','c'] into ['abc'] so that len(list) returns 1
You need to append the joined string to your new list.
For instance
my_list = ["a", "b", "c"]
my_second_list = []

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list