def linear_search(sequence, target):
 for (index, item) in enumerate(sequence):
  if (item == target):
   return index
 return None

def linear_search ( sequence , target ) : for ( index , item ) in enumerate ( sequence ) : if ( item == target ) : return index return None
pure implementation of linear search algorithm in python .