About 379,000 results
Open links in new tab
  1. python - How to convert list to string - Stack Overflow

    Apr 11, 2011 · How can I convert a list to a string using Python?

  2. python - How to convert string representation of list to a list - Stack ...

    275 The json module is a better solution whenever there is a stringified list of dictionaries. The json.loads(your_data) function can be used to convert it to a list.

  3. String to list in Python - Stack Overflow

    Off-topic, but for search's sake : Convert string representation of list to list.

  4. python - How do I split a string into a list of words? - Stack Overflow

    To split on other delimiters, see Split a string by a delimiter in python. To split into individual characters, see How do I split a string into a list of characters?.

  5. python - Pandas DataFrame stored list as string: How to convert back …

    Apr 16, 2014 · Pandas DataFrame stored list as string: How to convert back to list Asked 11 years, 7 months ago Modified 4 years, 2 months ago Viewed 157k times

  6. python - How to concatenate (join) items in a list to a single string ...

    Sep 17, 2012 · For handling a few strings in separate variables, see How do I append one string to another in Python?. For the opposite process - creating a list from a string - see How do I split a …

  7. Converting a string into a list in Python - Stack Overflow

    Mar 31, 2010 · Your question admits of too many possibilities. Does the text file only contain a list of numbers, or is that list in a larger context. Do you get to control how you read from the document or …

  8. Coverting all the list elements to string using Python?

    Jan 6, 2021 · Another way to do the same thing is by using the map function in python. However for efficiency reason, the type of the output is of type Map[str] instead of type List[str].

  9. python - How to iterate over each string in a list of strings and ...

    Jan 7, 2014 · Traceback (most recent call last): File "<stdin>", line 2, in <module> TypeError: list indices must be integers, not str How would I achieve comparing the first and the last element of a list of …

  10. python - How to check if a string is a substring of items in a list of ...

    It's a nice solution, but if you want to find the items which contain the given string, you will not succeed. Here you find out if any of the items contains the string.