click below
click below
Normal Size Small Size show me how
CSP - Chapter 13
| Term | Definition |
|---|---|
| Boolean Expression/Condition/Logical Expression | either true or false |
| Conditional Execution | one or more statements are run only when a logical expression is true |
| Decision | choice between at least two choices |
| Input | returns a value that the user enters |
| and | used to join two logical expressions and then both of the logical expressions must be true for the joined expression to be true |
| else | used to execute one or more statements in a block following the else when condition is false |
| elif | used when you want to have a conditional with 3 or more possible options |
| if | used to start a condition followed by a Boolean expression and then has one or more statements that are executed when the condition is true |
| not | used to negate a logical expression |
| str | turns a number into a string |