Write a program linear_search.py
that uses a main()
function to create a list of random integers. Then define a function search()
that takes two parameters--a list of integers, and an integer to search for--and returns the position (index) of the number in the list, or a -1
error code if the number is not on the list.