-
-
Save amankharwal/2c643eaeda7b1f67cbd380ccc51f69e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sequential_search(list_, n): | |
found = False | |
for i in list_: | |
if i == n: | |
found = True | |
break | |
return found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment