how to get a number from an array == to 2 python code example Example: array of 1 to 100 python myList = list(range(1, 101))