Learn

As mentioned, the else block won’t run in this case, since break executes when it hits 'tomato'.

Instructions

1.

Modify the code in the editor such that the for loop’s else statement is executed.

Take this course for free

By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Already have an account?