Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Stressful Subject by s_o_va
import string
import re
def is_stressful(subj):
if subj.isupper() or subj.endswith('!!!'):
return True
else:
subj = "".join(x.lower() for x in subj if x in string.ascii_letters)
if re.findall(r'h+e+l+p+', subj) or re.findall(r'a+s+a+p+', subj) or re.findall(r'u+r+g+e+n+t+', subj):
return True
return False
Sept. 30, 2018