About 803,000 results
Open links in new tab
  1. Python String split() Method - W3Schools

    The split() method splits a string into a list. You can specify the separator, default separator is any whitespace. Note: When maxsplit is specified, the list will contain the specified number of …

  2. Python String split() - GeeksforGeeks

    Apr 2, 2025 · Using the list split () method is very easy, just call the split () function with a string object and pass the separator as a parameter. Here we are using the Python String split () …

  3. Split and Parse a string in Python - GeeksforGeeks

    Dec 29, 2024 · re.split() uses regular expressions to split a string based on patterns, making it highly flexible for complex cases with multiple delimiters. We can use the map() function to …

  4. Split a string by a delimiter in Python - Stack Overflow

    When you want to split a string by a specific delimiter like: __ or | or , etc. it's much easier and faster to split using .split() method as in the top answer because Python string methods are …

  5. How do i split a string in python with multiple separators?

    Jun 15, 2012 · To split explicitly on either a space, or :-, you can use the | or regex thingy: ['Breathing', '1', '31.145', ...] As I mentioned in the comment on the question, I would have …

  6. How To Split a String using Python String split() Method - Python

    In this tutorial, you'll learn how to use the Python String split () method to split a string into a list of substrings.

  7. Function Split in Python: A Comprehensive Guide - CodeRivers

    Mar 17, 2025 · Understanding how to use `split()` effectively can significantly streamline your Python programming workflow. In Python, the `split()` function is a powerful string method that …

  8. Split and join a string in Python - GeeksforGeeks

    May 1, 2025 · split () function divides the string into a list of words and join () reassembles them with a specified separator. It is highly efficient and commonly used in Python for basic string …

  9. Python String split() - Programiz

    Write a function that takes a string input from the user and converts it to a list of words. For example, with input "Hello World", the output should be ['Hello', 'World']. Did you find this …

  10. python - Dividing a string at various punctuation marks using split ...

    Mar 21, 2012 · If you want to split a string based on multiple delimiters, as in your example, you're going to need to use the re module despite your bizarre objections, like this: It's possible to get …

  11. Some results have been removed
Refresh