Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to fetch all chars of a string before a space in python

>>> s1.split(':')
['Username', ' How are you today?']
>>> s1.split(':')[0]
'Username'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #fetch #chars #string #space #python
ADD COMMENT
Topic
Name
5+2 =