<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_end(text, suffix):
 """Strip `suffix` from the end of `text` if `text` has that suffix."""

    if not text.endswith(suffix):
        return text
    return text[:len(text)-len(suffix)]