Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created May 28, 2021 18:55
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save amankharwal/2c643eaeda7b1f67cbd380ccc51f69e2 to your computer and use it in GitHub Desktop.
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