Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for First Word by kazuki.h
import re
def first_word(text: str) -> str:
word_list = re.split('[" ", ",", "."]', text)
return [word_list[i] for i in range(len(word_list)) if word_list[i] != ""][0]
April 1, 2021
Comments: