<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def strip_exts(s, exts):
 """ Given a string and an interable of extensions, strip the extenion off the string if the string ends with one of the extensions. """

    f_split = os.path.splitext(s)
    if f_split[1] in exts:
        return f_split[0]
    else:
        return s