def calcsum(n):
    sum = 0
    for num in range(n+1):
        sum += num
    return sum

print("~4 = ", calcsum(4))
print("~10 = ", calcsum(10))
98decf81c790c1d33fd66345f721402a27b9a8f1
<mask token>

def calcsum(n):
    sum = 0
    for num in range(n + 1):
        sum += num
    return sum


<mask token>

def calcsum(n):
    sum = 0
    for num in range(n + 1):
        sum += num
    return sum


print('~4 = ', calcsum(4))
print('~10 = ', calcsum(10))

def calcsum(n):
    sum = 0
    for num in range(n+1):
        sum += num
    return sum

print("~4 = ", calcsum(4))
print("~10 = ", calcsum(10))