Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
4-liner: replace & split solution in Clear category for First Word by przemyslaw.daniel
def first_word(text):
text = text.replace('.', ' ').replace(',', ' ')
result, *_ = text.split()
return result
Dec. 7, 2017