#! /usr/local/bin/python3 array = [0,1,2,3,4] target = 3 for i, item in enumerate(array): if item == target: print(f'{target} is in {i}') break else: print(f'{target} is not found')