Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 27, 2025
commit 488301760be9fc366014185505e9554a40db046b
5 changes: 4 additions & 1 deletion searches/linear_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ def linear_search(sequence: list, target: int) -> int:
if item == target:
return index
return -1
if __name__== '__main__' :


if __name__ == "__main__":
import doctest

doctest.testmod()


Expand Down