Python
Python copied to clipboard
style: Add doctest execution block to linear_search.py
Adds the standard boilerplate code to allow the existing test cases to run.
Changes include:
- Included the required execution block (
if __name__ == '__main__':) to calldoctest.testmod().
This ensures the algorithm is fully compliant with the repository's automatic testing standards.