PY-02-P1 Data Types and Conditions Flashcards
1
Q
Constructed of a name and value. They can be thought of as data containers
A
Variables
2
Q
Variable Types
A
Syntax varies depending on the data type. Python will automatically detect the data type.
3
Q
the ____ function is used to ask users for input. Syntax: input( )
A
input
4
Q
Window will close automatically upon execution
A
Fly-by-window issue
5
Q
To print output to the console, use:
A
print(VariableName)
6
Q
A table that defines the results of a binary expression
A
Truth Table
7
Q
Both conditions must be true
A
AND
8
Q
Only one of the operations needs to be true
A
OR
9
Q
Reverses the result of the operation
A
NOT
10
Q
Exclusive OR. True if the results of the operation aren’t similar
A
XOR