Sobes.tech
Junior — Senior

Determining the presence of elements in a map object

livecode

Task condition

What output will the program below produce? The example illustrates checking for the presence of specific values in a map object obtained using the map function.

seq = map(abs, [1, 2, -3, -4, 5, -9])
print(4 in seq)
print(5 in seq)
print(2 in seq)