Intervals

Report a typo

Match the value of var with the output of the following program:

if var >= 300:
    print("out of limit")
elif (var >= 100) and (var < 200):
    print("the second interval")
else:
    if var < 100:
        print("the first interval")
    else:
        print("the third interval")

Match the items from left and right columns
88
101
276
300
the first interval
the third interval
the second interval
out of limit
___

Create a free account to access the full topic