Update linearSearch.py

Attempted to fix, but couldn't find anything to make it work and am bogged down with homework, so I give up here. Will complete the other task as well to make up for it, as it shouldn't take long.