Python Challenges - Find the sum of all alternate odd numbers

Опубликовано: 27 Октябрь 2024
на канале: Ajay Tech
1,264
4

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

Notes - https://ajaytech.co/python-challenges...

Courses - https://www.udemy.com/course/just-eno...