Answers for "how to split string with first space in python"

3

python split first space

>>> s = "238 NEO Sports"
>>> s.split(" ", 1)
['238', 'NEO Sports']
Posted by: Guest on January-26-2021

Code answers related to "how to split string with first space in python"

Python Answers by Framework

Browse Popular Code Answers by Language