check if an item is an array in python code example
Example 1: python check array param
isinstance([0, 10, 20, 30], list) # True
isinstance(50, list) # False
Example 2: how to check an array for a value in python
s = set(a)
if 7 in s:
# do stuff