This is the code
def summationTwo(lower, upper, margin):
"""Returns the sum of the numbers from lower through upper,
and outputs a trace of the arguments and returns values on
each call"""
blanks = " " * margin
print(blanks, lower, upper)
if lower > upper:
print(blanks, 0)
return 0
else:
result = lower + summation(lower + 1, upper, margin + 4)
print(blanks, result)
return result
summationTwo (1, 4)
When I plug in two arguments for the summationTwo function call, I get a traceback that says, "TypeError: summation() takes 2 positional arguments but 3 were given."
However, when I plug in but two arguments, I get this traceback: "TypeError: summationTwo() missing 1 required positional argument: 'margin'"
What's going on?