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



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

Take this course for free

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

Or sign up using:

Already have an account?