Answers for "extracting a string from a string up until the first , python"

1

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

>>> s1.split(':')
['Username', ' How are you today?']
>>> s1.split(':')[0]
'Username'
Posted by: Guest on May-24-2020

Code answers related to "extracting a string from a string up until the first , python"

Python Answers by Framework

Browse Popular Code Answers by Language