mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 18:38:39 +00:00
Update linear_search.py (#1906)
This commit is contained in:
parent
b560b76002
commit
58271c5851
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user