Font size
WorksheetsConditions
Total questions: 15
Worksheet time: 16mins
What boolean data are there in Python?
True
False
1
0
What do relational operators do?
Compare data
Join expressions
Assign and operate variables
Add new items to old variables
The relation operator of "not equal to"
¡=
!=
==
Not =
Which one is correct?
=>
>=
what is the word that establishes the condition on Python?
"si"
"da"
"yes"
"if"
Write down a code that establishes the next condition.
If my_favorite_game is not "The Legend of Zelda" then print "In correct, my favorite game is "The Legend of Zelda"
On Python, only one condition can be established.
True, we can only establish one condition.
True, more than one condition makes the code crash.
False, more than one condition is possible.
What "word" should I use if my first condition is false?
"if"
"elif"
"else if"
"another if"
If all of my conditions fail, what would should I use?
"else"
"break"
"stop"
"otherwise"
Write down a short code where you use "if", "elif", and "else".
How can you say in Python, This number is greater than this number?
a <= b
a >= b
a == b
a != b
How can you say in Python, This number is less than this number?
a <= b
a >= b
a == b
a != b
How can you say in Python, This number is equal to this number?
a <= b
a >= b
a == b
a != b
Write down a code where you use the logical operator "not"
What logical operator would represent this truth table?
F + F = F
F + T = T
T + F = T
T + T = T
And
Or
True
