Nov-04-2016, 02:01 AM
string_list = ['s', 't', 'r', 'i', 'n', 'g', 's'] string = '' for item in string_list: string += s print string >> stringsUse +=, they must be the same type or you will get a TypeError.
list of strings to a single string
|
|
Messages In This Thread |
list of strings to a single string - by tebirkes - Nov-01-2016, 04:58 PM
RE: list of strings to a single string - by Yoriz - Nov-01-2016, 05:34 PM
RE: list of strings to a single string - by tebirkes - Nov-01-2016, 05:54 PM
RE: list of strings to a single string - by kopuz - Nov-04-2016, 02:01 AM
RE: list of strings to a single string - by wavic - Nov-04-2016, 07:20 AM
RE: list of strings to a single string - by Mekire - Nov-04-2016, 07:34 AM
RE: list of strings to a single string - by wavic - Nov-04-2016, 07:41 AM
RE: list of strings to a single string - by Skaperen - Nov-04-2016, 08:19 AM
RE: list of strings to a single string - by wavic - Nov-04-2016, 08:36 AM
RE: list of strings to a single string - by Mekire - Nov-04-2016, 09:16 AM
RE: list of strings to a single string - by wavic - Nov-04-2016, 10:00 AM
RE: list of strings to a single string - by Aadi - Nov-04-2016, 10:12 AM
RE: list of strings to a single string - by wavic - Nov-04-2016, 01:10 PM
|