Sobes.tech
Intern — Middle

Determining the result of a logical expression with empty objects

livecode

Task condition

It is necessary to understand what value the variable a will have and whether the body of the if condition will be executed: Checking if the execution will enter the if block with the given variable values.

q = []
w = 0

a = q or w

if q or w:
    pass

print(a)