mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +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)
|
||||
result = linear_search(sequence, target)
|
||||
if result is not None:
|
||||
print(f"{target} found at positions: {result}")
|
||||
print(f"{target} found at position : {result}")
|
||||
else:
|
||||
print("Not found")
|
||||
|
|
Loading…
Reference in New Issue
Block a user