check if the current element in consideration is equal to x or not if it is equal , then x exists in the range
if a [ p ] == x : NEW_LINE INDENT flag = True NEW_LINE break NEW_LINE DEDENT p = find ( p ) - 1 NEW_LINE