Question 2

Even fibonacci numbers

Code:

	# Define the sum
	sum = 0

	# Define x
	x=[1,1]

	# While loop
	while x[1] < 4000000:
	    # Find sum of x
	    n=sum(x)

	    # If divisible by 2
	    if not n % 2:
	        # Add n to the sum
	        sum += n

	        # Update x arroy
	        x=[x[1],n]

	# Print sum
	print(sum)
	
Charlie M-S