Last Stop Before Forty

Python FundamentalsEasy+10 XP+10

Last Stop Before Forty

Trace this loop:

What is the last number it prints?

Enter a whole number.

Hints

Solve it to unlock the solution

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