QUESTION IMAGE
Question
1 # statements before
2
3 if condition:
4 # body
5 else:
6 # body
7
8 # statements after
video example: trivia question
question 21
bool(0.000)
true
false
Step1: Recall bool() behavior in Python
In Python, the bool() function converts a value to a Boolean (True or False). A zero - valued number (such as 0, 0.0, 0j) is converted to False.
Since 0.000 is a zero - valued floating - point number, bool(0.000) returns False. So the answer is False.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
A. True, B. False