print(in_nested_list(x, 5))
print(in_nested_list(x, 'a'))
print(in_nested_list(x, 'b'))
print(in_nested_list(x, []))
print(in_nested_list(x, [1, 2]))
print(in_nested_list(x, [1, 2, 3]))
True
False
True
False
True
False
True
Check if an item is in a nested list