Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created March 11, 2021 05:49
Embed
What would you like to do?
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