diff --git a/4 - If Else and Logical Operators/README.md b/4 - If Else and Logical Operators/README.md index 29315ac..a21ca9a 100644 --- a/4 - If Else and Logical Operators/README.md +++ b/4 - If Else and Logical Operators/README.md @@ -3,10 +3,12 @@ ## What's this if/else nonsense? Sometimes, our programs need to make decisions, we need to do one thing if some condition is true, and something else if it's not. We use if/else statements to ask questions in our program so we can make decisions about what should happen. The format of an if statement starts off simple. -`if (some condition): +``` +if (some condition): (DO STUFF IF CONDITION IS TRUE) else: - (DO STUFF IF CONDITION IS FALSE)` + (DO STUFF IF CONDITION IS FALSE) +``` We can check different things to make different choices, neat. But what do we do if we need to ask a bunch of related questions in our program? That's were elif comes in.