Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First - Stressful Subject solution in Clear category for Stressful Subject by Wakko_Warner
def is_stressful(subj):
subj_l = ''.join([c for i, c in enumerate(subj.lower()) if c.isalnum() and c != subj[i-1].lower()])
print(subj_l)
return subj.isupper() or subj[-3:] == '!!!' or 'help' in subj_l or 'asap' in subj_l or 'urgent' in subj_l
if __name__ == '__main__':
#These "asserts" are only for self-checking and not necessarily for auto-testing
assert is_stressful("Hi") == False, "First"
assert is_stressful("I neeed HELP") == True, "Second"
print('Done! Go Check it!')
Jan. 7, 2021