Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for First Word by Wojtek_Okularczyk
def first_word(text):
word = ''
for char in text:
if char.isalpha() or char == "'":
word += char
elif len(word)>0 and not char.isalpha():
return word
else:
word = ''
return word
Aug. 23, 2021