Skip to content

Commit

Permalink
Issue ademclk#10 resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
DragoVeizen committed Oct 15, 2022
1 parent 0a26541 commit b347ddd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions challenges/Python/fibonacci_odd_sum/fibonacci_odd_sum.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
def fibonacci_odd_sum :
prev, cur = 0, 1
total = 0
while True:
prev, cur = cur, prev + cur
if cur >= 10000:
break
if cur % 2 != 0:
total += cur
print(total)

0 comments on commit b347ddd

Please sign in to comment.