First solution in Clear category for First Word by madsndp
def first_word(text: str) -> str:
returns the first word in a given text.
return re.findall(r"[\w']+", text)
Aug. 16, 2018