Answers for "python split the first"

3

python split first space

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

python split by first match

s.split('mango', 1)[1]
Posted by: Guest on May-21-2020

Code answers related to "python split the first"

Python Answers by Framework

Browse Popular Code Answers by Language