Concatenate list values

Andrew Berg aberg010 at my.hennepintech.edu
Mon Feb 23 11:14:04 EST 2015


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:
https://docs.python.org/3/tutorial/introduction.html#strings
And there is ample reference documentation for strings and lists:
https://docs.python.org/3/library/stdtypes.html#string-methods
https://docs.python.org/3/library/string.html
https://docs.python.org/3/library/stdtypes.html#sequence-types-list-tuple-range

Get to know strings and lists, and this should be a trivial problem to solve.

Or just copy/paste the answers others gave and be confused the next time you
need to solve a simple problem.



More information about the Python-list mailing list