Agnisys interview question

Program of linear regression python code