def endswithoneof(inputstr, seq):
    seq = set(seq)
    for item in seq:
        if inputstr.endswith(item):
            return item
    else:
        return None
Check if *inputstr* ends with one of the items in seq. If it does, return
dataset/ETHPy150Open pycantonese/pycantonese/pycantonese/util.py/endswithoneof