def ends(s, what):
    s = s[::-1]
    if isinstance(what, str):
        what = [what]
    for item in what:
        if s.find(item[::-1]) == 0:
            return True
    return False
Check if a string ends with given string or any one in given list.
dataset/ETHPy150Open richrd/suplemon/suplemon/helpers.py/ends