Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BeeBombshell/Python-DSA
/ linear_Search
Function
linear_Search
Search Algorithms/linear_search.py:1–6 ·
view source on GitHub ↗
(list1, n, key)
Source
from the content-addressed store, hash-verified
1
def
linear_Search(list1, n, key):
2
3
for
i in range(0, n):
4
if
(list1[i] == key):
5
return
i
6
return
-1
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected