Answers for "Provide a script that prints the sum of every even numbers in the range [0; 100]."

0

Provide a script that prints the sum of every even numbers in the range [0; 100].

def sum_even():
    return sum(i for i in range(0, 101 + 1) if i % 2 == 0)
print(sum_even())
Posted by: Guest on January-11-2021

Code answers related to "Provide a script that prints the sum of every even numbers in the range [0; 100]."

Python Answers by Framework

Browse Popular Code Answers by Language