python how to get letetr a until lettter code example
Example: get string until character python
s = "first_second"
s.split('_')[0] # Split the string on '_' return the first part.
>>> 'first'
s = "first_second"
s.split('_')[0] # Split the string on '_' return the first part.
>>> 'first'