0
0
Pythonprogramming~5 mins

Boolean values (True and False) in Python - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What are the two Boolean values in Python?
The two Boolean values in Python are True and False. They represent truth and falsehood.
Click to reveal answer
beginner
How do you write the Boolean value for true in Python?
You write it as True with a capital T. Python is case-sensitive, so true is not correct.
Click to reveal answer
beginner
What is the result of the expression 5 > 3 in Python?
The expression 5 > 3 is True because 5 is greater than 3.
Click to reveal answer
beginner
What type does the value True have in Python?
The value True has the type bool, which stands for Boolean.
Click to reveal answer
beginner
How can Boolean values be used in Python programs?
Boolean values are used to control decisions, like in if statements, loops, and to represent conditions that are either true or false.
Click to reveal answer
Which of these is the correct Boolean value for false in Python?
AF
Bfalse
CFALSE
DFalse
What will 3 == 3 return in Python?
ATrue
BFalse
C3
DError
What type is the value True in Python?
Abool
Bstr
Cfloat
Dint
Which of these expressions evaluates to False?
A5 == 5
B10 < 5
C7 > 3
D4 == 4
In Python, Boolean values are often used in:
ACalculating sums
BStoring text
CLoops and conditions
DDrawing graphics
Explain what Boolean values are and how they are used in Python.
Think about yes/no or on/off decisions in programs.
You got /5 concepts.
    Describe the difference between the Boolean values True and False with examples.
    Use simple comparisons to explain.
    You got /4 concepts.