Linear Search
Write a function linear_search(items, target) that returns the index of target in the list items, or -1 if not found. Test it with the calls provided.
main.py
Loading editor…
Console
Run your code to see output here.
Hints
Write a function linear_search(items, target) that returns the index of target in the list items, or -1 if not found. Test it with the calls provided.
Console
Run your code to see output here.
Hints