Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Stressful Subject by kazuki.h
import re
def is_stressful(subj):
if subj.isupper():
return True
subj = subj.lower()
if re.search("h+(!|-|\.)*e+(!|-|\.)*l+(!|-|\.)*p", subj) or \
re.search("a+(!|-|\.)*s+(!|-|\.)*a+(!|-|\.)*p", subj) or \
re.search("u+(!|-|\.)*r+(!|-|\.)*g+(!|-|\.)*e+(!|-|\.)*n+(!|-|\.)*t", subj) or \
re.search("!!!$", subj):
return True
else:
return False
April 2, 2021
Comments: