To wrap up this lesson, let’s create our own for/else statement from scratch.



Build your for/else statement in the editor. Execution of the else branch is optional, but your code should print a string of your choice to the editor regardless.

Folder Icon

Take this course for free

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

Already have an account?