Chapter 3 Flashcards
1
Q
What does the Import statement do?
A
Allows you to import, or load modules
2
Q
What is a Random Module
A
Files that contain code meant to be used in other programs.
3
Q
Randint( meaning:
A
produces random integer
4
Q
Condition
A
Expression that is either true or false
5
Q
==
A
Equal to (ex. 5 == 5 TRUE)
6
Q
!=
A
Not equal to (ex. 8 != 5 TRUE)
7
Q
>
A
Greater than (ex. 3>10 FALSE)
8
Q
<
A
Less than (ex. 5<8 TRUE)
9
Q
> =
A
Greater than or equal to (ex. 5>=10 FALSE)
10
Q
<=
A
Less than or equal too (ex. 5 <= 5 TRUE)
11
Q
What is a block
A
One or more consecutive lines
indented by the same amount.
12
Q
A