<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:


def sum_to_n(n: int):
    """sum_to_n is a function that sums numbers from 1 to n. 465 5050 15 55 1 """
    return sum(range(n + 1))
