QUESTION IMAGE
Question
3 if condition:
4 # body
5 else:
6 # body
7
8 # statements after
video example: trivia question
question 5
bool(-1)
false
true
Step1: Recall bool() behavior in Python
In Python, bool() function converts a value to a boolean. Non - zero integers are considered True.
Step2: Evaluate bool(-1)
Since - 1 is a non - zero integer, bool(-1) is True.
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
True