Python Challenges - Find the sum of all alternate odd numbers

preview_player
Показать описание
Challenge - Create a function that takes in an integer and finds out the sum of all the alternate odd numbers between 1 and the given input integer. For example, the function should return 15 for n = 10 as the alternate odd numbers are 1 5 9 . so 1 + 5 + 9 = 15

Рекомендации по теме
visit shbcf.ru