SumΒΆ

sum() can be used on a range as well as a list:

def sum_numbers(numbers=None):
    if numbers is None:
        numbers = range(1, 101)
    return sum(numbers)