Problem 2: Even Fibonacci Numbers Hint

Problem 2: Even Fibonacci Numbers Hint
0

#1

If you came this far, and created a solution that passes all tests except for “Your function is not returning the correct result using our tests values”, then your search is over

The description of the problem is a little bit misleading and you created the wrong solution based on it.
You created the solution that counts odd numbers and not even ones.

Say what?! Yes, I know. The problem said to use even numbers but then the solution was not passing the tests.
So, you figured out that probably it is a typo in the problem, and in order to pass the tests, you need to calculate odd numbers. Right, and then your code passed all the tests except the weird one “Your function is not returning the correct result using our tests values”.

The issue is that the Fibonacci sequence that is used in this problem is a pseudo-Fibonacci sequence
The real sequence is 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55… (or sometimes referred as 1, 1, 2, 3, 5, 8, 13, 21, 34, 55…)
However, if you are solving this problem, assume that the sequence is 1, 2, 3, 5, 8, 13, 21, 34, 55…

Therefore, the first ten numbers are [ 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144 ] (yes, it is 11 actually, I know, it is because we are counting from zero!), and the sum of the even ones [ 2, 8, 34, 144 ] is 188.

Good luck and happy coding!