How to Code Linear Search in Python