I have string for example: \"238 NEO Sports\". I want to split this string only at the first space. The output should be [\"238\",\"NEO S
\"238 NEO Sports\"
[\"238\",\"NEO S
Just pass the count as second parameter to str.split function.
str.split
>>> s = "238 NEO Sports" >>> s.split(" ", 1) ['238', 'NEO Sports']