check value left of element in python array code example
Example 1: position in array python
a_list = [1, 2, 3]
position_of_three = a_list.index(3)
print(position_of_three)
Example 2: how to check an array for a value in python
s = set(a)
if 7 in s:
# do stuff