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