def fibonacci(n):
first = 0
second = 1
count = 0
while count <= n:
if (second % 2 == 0):
first, second = second, first + second
count += 1
return first, second
print (fibonacci(4000000))
Can somebody please explain what is wrong with this code? In IDLE the page restarts but returns no answer. By the way, I'm a beginner programmer, only just finished the CodeAcademy course.