Update linear-regression-function.py

made idiomatic, removed unused code
Merge pull request #1 from jimrybarski/patch-1

Update linear-regression-function.py