Log in to save your progress.
<< Back to problems
Note! The window is too narrow to use Pythonlab.dev. Use a device with a keyboard!

Even Fibonacci numbers

Prerequisites: Basic course part I

Each new term in the Fibonacci sequence is the sum of the two preceding terms. Starting with 1 and 2, the first ten terms will be:

1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...

Find the sum of the terms in the Fibonacci sequence whose values do not exceed four million and are even-valued. Only print the sum.

This is an English translation of the second problem on Project Euler.

Login to save your progress and your code.

Create

Write your code here.

-- Output from your program will be here --