On 8/23/07, dimitri pater <[EMAIL PROTECTED]> 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 = []
my_second_list.append("".join(my_list))

bye,
Francesco
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to