<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def depipe(s):
 """Convert a string of the form DD or DD|MM or DD|MM|SS to decimal degrees"""

    n = 0
    for i in reversed(s.split('|')):
        n = n / 60.0 + float(i)
    return n