How to Find Integer/Number in Array Using Python

Itacen Sabacok | Aug 30, 2022
1intArr = [1, 2, 3, 4, 5, 6]
2find = 4
3 
4if find in intArr:
5  print('its found!')
6else:
7  print('its not found!')

OUTPUT:

its found!