Answers for "python program to recieve strings until the string stop is entered"

1

get string until character python

s = "first_second"
s.split('_')[0] # Split the string on '_' return the first part. 
>>> 'first'
Posted by: Guest on October-23-2020

Code answers related to "python program to recieve strings until the string stop is entered"

Python Answers by Framework

Browse Popular Code Answers by Language