We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afe0e04 commit 045818bCopy full SHA for 045818b
algorithms/linearSearch.py
@@ -1,8 +1,11 @@
1
# These implementations of the linear search algorithm works only with Python36
2
3
def linearSearch(myItem, myList):
4
+
5
found = False
6
7
position = 0
8
9
while position < len(myList) and not found:
10
if myList[position] == myItem:
11
found = True
0 commit comments