Re: Concatenate list values

2015-02-24 Thread loial
Many thanks for those you chose to help me out. Problem solved. -- https://mail.python.org/mailman/listinfo/python-list

Re: Concatenate list values

2015-02-23 Thread Andrew Berg
On 2015.02.23 09:58, loial wrote: > Is there a quick way to concatenate all the values in a list into a string, > except the first value? > > I want this to work with variable length lists. > > All values in list will be strings. > > Any help appreciated > The tutorial covers strings and lists

Re: Concatenate list values

2015-02-23 Thread John Gordon
In <12821378-62af-4954-8b61-aa0738c5f...@googlegroups.com> loial writes: > Is there a quick way to concatenate all the values in a list into a string, > except the first value? > I want this to work with variable length lists. > All values in list will be strings. > Any help appreciated big

Re: Concatenate list values

2015-02-23 Thread Tim Chase
On 2015-02-23 07:58, loial wrote: > Is there a quick way to concatenate all the values in a list into a > string, except the first value? > > I want this to work with variable length lists. > > All values in list will be strings. Using "".join(my_list[1:]) should work. If it is an arbitrary

Re: Concatenate list values

2015-02-23 Thread alister
On Mon, 23 Feb 2015 07:58:39 -0800, loial wrote: > Is there a quick way to concatenate all the values in a list into a > string, except the first value? > > I want this to work with variable length lists. > > All values in list will be strings. > > Any help appreciated ''.join(mylist[1:]) all

Re: Concatenate list values

2015-02-23 Thread Peter Otten
loial wrote: > Is there a quick way to concatenate all the values in a list into a > string, except the first value? > > I want this to work with variable length lists. > > All values in list will be strings. > > Any help appreciated >>> strings ['All', 'values', 'in', 'list', 'will', 'be', 's

Concatenate list values

2015-02-23 Thread loial
Is there a quick way to concatenate all the values in a list into a string, except the first value? I want this to work with variable length lists. All values in list will be strings. Any help appreciated -- https://mail.python.org/mailman/listinfo/python-list