Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
straight forward solution in Clear category for Stressful Subject by jiizzyy
def is_stressful(subj):
red_words = ['help', 'asap', 'urgent']
for red_word in red_words:
i = 0
for c in subj.lower():
if c == red_word[i]:
i += 1
elif i > 0 and c.isalpha() and c != red_word[i-1]:
i = 0
if i == len(red_word):
return True
return any([subj.isupper(), subj[-3:] == '!!!'])
Feb. 9, 2020
Comments: