mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-06 10:31:29 +08:00
Update linear_search.py (#1906)
This commit is contained in:
@ -45,6 +45,6 @@ if __name__ == "__main__":
|
|||||||
target = int(target_input)
|
target = int(target_input)
|
||||||
result = linear_search(sequence, target)
|
result = linear_search(sequence, target)
|
||||||
if result is not None:
|
if result is not None:
|
||||||
print(f"{target} found at positions: {result}")
|
print(f"{target} found at position : {result}")
|
||||||
else:
|
else:
|
||||||
print("Not found")
|
print("Not found")
|
||||||
|
Reference in New Issue
Block a user