Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for First Word by Wakko_Warner
def first_word(text: str) -> str:
"""
returns the first word in a given text.
"""
# your code here
return text.replace('.',' ').replace(',',' ').split()[0]
Nov. 19, 2020