Learning linear regression in Python is the best first step towards machine learning. Here, you can learn how to do it using numpy + polyfit.