Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for First Word by ndj_ys
def first_word(text: str) -> str:
reText = text.translate(str.maketrans({",":" ",".":" "}))
textList = reText.split(" ")
for word in range(len(textList)):
if textList[word] != "":
return textList[word]
Aug. 9, 2018
Comments: