def summation(lower, upper):
    """returns the sum of the numbers from lower through upper"""
    #!base case
    if lower > upper:
        return 0

    #!recursive case
    return lower + summation(lower + 1, upper)