Find the first occurrence of a target in a list, returning its index or -1 if missing.
Constraints
Example
```python >>> linear_search([1, 2, 3, 2], 2) 1 >>> linear_search([1, 2, 3], 4) -1 >>> linear_search([], 0) -1 ```
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints