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