Learn
Loops
Change it up

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.

Folder Icon

Take this course for free

Already have an account?