Find the Missing Step

Python FundamentalsMedium+10 XP+10

Find the Missing Step

This short tip program crashes when the user types 40.

Which change makes it work?

Hints

Solve it to unlock the solution

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

Select all that apply.