Apples and Pears Leapfrog

Python FundamentalsHard+10 XP+10

Apples and Pears Leapfrog

Two boxes keep using each other's values:

What number is printed? Enter a whole number.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.