The code
(Click for tabs)
def search(list,n):
i = 0
while i < len(list):
if list[i] == n:
print(n, "was found at", (i+1),"position in the list")
return
else:
i = i+1
one = [3,7,4,2,8,34,9,22,11]
search(one,9)
Show how to add "print("Sorry it wasn't found")" at the end of the while loop to allow for this case.