Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
A little too simplified solution in Clear category for First Word (simplified) by DerryK
def first_word(text: str) -> str:
"""
returns the first word in a given text.
"""
return text.split()[0]
March 17, 2020