Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created March 11, 2021 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/0d77ae07f6af54ebb49df2e3be396226 to your computer and use it in GitHub Desktop.
Save amankharwal/0d77ae07f6af54ebb49df2e3be396226 to your computer and use it in GitHub Desktop.
def sequential_search(list_, n):
for i in list_:
if i == n:
break
return True
elements = range(0, 20)
ss = sequential_search(elements, 4)
print(ss)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment