Algorithm For Linear Search In Python