Answer:
def sum_evens(n):
# Initialize a variable to keep track of the sum
sum = 0
# Initialize a variable to keep track of the current number
current = 0
# Loop until the current number is greater than the passed number
while current <= n:
# If the current number is even, add it to the sum
if current % 2 == 0:
sum += current
# Increment the current number
current += 1
# Return the sum
return sum