Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
[H{0}E{0}L{0}P]+ solution in Clear category for Stressful Subject by V.Shkaberda
import re
def is_stressful(subj):
"""
recoognise stressful subject
"""
patterns = ('[H{0}E{0}L{0}P]+', '[A{0}S{0}A{0}P]+', '[U{0}R{0}G{0}E{0}N{0}T]+', '!!!$')
ups = subj.upper()
return subj == ups or any(re.search(p.format(']+(?! )[\W]*['), ups) for p in patterns)
June 9, 2019
Comments: