Answer
See code
Work Step by Step
def shortSequentialSearch(a, x):
$\quad$i=0
$\quad$while(ix):
$\quad$$\quad$$\quad$return -1
$\quad$return -1
The above function searches for element x in array a. It starts checking from the first index of the array and continues searching until it reaches an element which is either equal to x or is greater than x.