in a simple list following check is trivial:
x = [1, 2, 3] 2 in x -> True
but if it is a list of list, such as:
x = [[
This would work:
for arr in x: if 2 in arr: print True break
I would recommend Oscar's answer as any is the right option here.
any
try
2 in [i for sublist in x for i in sublist]