DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+4 =
Submit