Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second 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]
July 4, 2021
Comments: