Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
replace ×2, and split solution in Clear category for First Word by Sioul
def first_word(text: str) -> str:
"""
returns the first word in a given text.
"""
return text.replace('.', ' ').replace(',', ' ').split()[0]
April 5, 2019