def sum_rec(l):
    if len(l) == 1:
        return l[0]
    else:
        return l[0] + sum_rec(l[1:])


a = [1, 2, 3]
print(sum_rec(a))

b1360c6ee374ca1e1bcd106f9dd256d619695095
<mask token>

def sum_rec(l):
    if len(l) == 1:
        return l[0]
    else:
        return l[0] + sum_rec(l[1:])


<mask token>

def sum_rec(l):
    if len(l) == 1:
        return l[0]
    else:
        return l[0] + sum_rec(l[1:])


<mask token>
print(sum_rec(a))

def sum_rec(l):
    if len(l) == 1:
        return l[0]
    else:
        return l[0] + sum_rec(l[1:])


a = [1, 2, 3]
print(sum_rec(a))
