Question: in python (7 pts) Write a function called sum_evens () that adds up all the even numbers from 1 up to the number given as
(7 pts) Write a function called sum_evens () that adds up all the even numbers from 1 up to the number given as a parameter, inclusively. Assumptions: The argument in the function calls are positive integers. Signature: def sum_evens (n) : \#your code here \#... return sum 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
