Chapter 3 Flashcards

1
Q

What does the Import statement do?

A

Allows you to import, or load modules

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

What is a Random Module

A

Files that contain code meant to be used in other programs.

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

Randint( meaning:

A

produces random integer

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

Condition

A

Expression that is either true or false

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

==

A

Equal to (ex. 5 == 5 TRUE)

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

!=

A

Not equal to (ex. 8 != 5 TRUE)

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

>

A

Greater than (ex. 3>10 FALSE)

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

<

A

Less than (ex. 5<8 TRUE)

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

> =

A

Greater than or equal to (ex. 5>=10 FALSE)

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

<=

A

Less than or equal too (ex. 5 <= 5 TRUE)

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

What is a block

A

One or more consecutive lines
indented by the same amount.

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