Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

3 if condition: 4 # body 5 else: 6 # body 7 8 # statements after video …

Question

3 if condition:
4 # body
5 else:
6 # body
7
8 # statements after
video example: trivia question
question 5
bool(-1)
false
true

Explanation:

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.

Answer:

True