Experimenting with README formatting

This commit is contained in:
Bradley Bickford 2022-12-17 13:26:52 -05:00
parent 5273b60f6a
commit 05392f945b

View File

@ -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.