mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08: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