You only have one string there, so iterating over it will give you strings of length 1. If you want the items separated by commas, then split the string on the comma and you'll have a sequence of the items.
String in a list
String in a list
|
|
Messages In This Thread |
String in a list - by willpe - Aug-18-2021, 01:16 PM
RE: String in a list - by ndc85430 - Aug-18-2021, 01:47 PM
RE: String in a list - by DeaD_EyE - Aug-18-2021, 02:08 PM
RE: String in a list - by deanhystad - Aug-18-2021, 03:01 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
I converted string to 'list', but it doesn't look like a list! | mrapple2020 | 3 | 3,303 |
Apr-07-2019, 02:34 PM Last Post: mrapple2020 |
|
Create Alert if string from list appears on other list | javalava | 1 | 2,556 |
Sep-17-2018, 02:44 PM Last Post: DeaD_EyE |
|
List of pathlib.Paths Not Ordered As Same List of Same String Filenames | QbLearningPython | 20 | 15,690 |
Nov-16-2017, 04:47 PM Last Post: QbLearningPython |
|
Create a new list by comparing values in a list and string | DBS | 2 | 3,596 |
Jan-14-2017, 07:59 AM Last Post: Yoriz |
Users browsing this thread: 1 Guest(s)