Linear search#
Write a linear_search(v, l) function that returns the index of the element v in l, or raises a ValueError if it’s not present.
Write a linear_search(v, l) function that returns the index of the element v in l, or raises a ValueError if it’s not present.