

def starts(s, what):
    'Check if a string begins with given string or any one in given list.'
    if isinstance(what, str):
        what = [what]
    for item in what:
        if (s.find(item) == 0):
            return True
    return False

dataset/ETHPy150Open richrd/suplemon/suplemon/helpers.py starts/original