Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python drop the first word

>>> s = 'word1 word2 word3'
>>> s.split(' ', 1)
['word1', 'word2 word3']
>>> s.split(' ', 1)[1]
'word2 word3'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #drop #word
ADD COMMENT
Topic
Name
1+4 =