from test import test

friends = ["Joe","Zoe","Brad","Angelina","Zuki","Thandi","Paris"]



def search_linear(xs,target):
    """Find and return the index of target in sequence xs"""
    for (i,v) in enumerate(xs):
        if v == target:
            return i
    return -1


test(search_linear(friends,"Zoe") == 1)
test(search_linear(friends, "Joe") == 0)
# test(search_linear(friends, "Paris") == 6)
# test(search_linear(friends, "Bill") == -1)