Lesson 10 Flashcards
1
Q
conditional statements
A
Always start with if followed by a boolean expression and a colon.
2
Q
Functions
A
blocks of code that you can use to build a bigger program.
3
Q
COnditional statements
A
if else elif
4
Q
Compound conditional statements
A
use three different logical operators to combine multiple Boolean expressions
5
Q
Else statement
A
runs code when the statement is false.
6
Q
Elif statement
A
combins else statement with another conditional statement to check for extra info. It can only be used after an if or another elif statement.