Lesson 10 Flashcards

1
Q

conditional statements

A

Always start with if followed by a boolean expression and a colon.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Functions

A

blocks of code that you can use to build a bigger program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

COnditional statements

A

if else elif

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Compound conditional statements

A

use three different logical operators to combine multiple Boolean expressions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Else statement

A

runs code when the statement is false.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly