def sum_n(n):
    """Function that sums up the integers from 1 to n

    Notebook: PCP_04_control.ipynb

    Args:
        n: Integer number

    Returns:
        s: Sum of integers from 1 to n
    """
    s = 0
    for n in range(1, n+1):
        s = s + n
    return s