Control Flow Know-How

Good! There were two problems with our output, though: we didn't have spaces between our words, and our program didn't actually replace the word we wanted to redact with the word "REDACTED".

if var == 10
   print "Variable is 10"
   print "Variable is something else"

We can fix that with some if/else magic! The above example just reminds you how an if/else block works.

Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.