Linear_regressionand machine learning

this gives me assertion error

{moderator edit: code removed}

Dear Abhay_Gulhane,

Thank you very much for your question. You did not indent the lines after you start the for loop (if that is what you intend to do). Make sure to check the operations you are doing in the for loop as well. As an example, cost = cost = … seems to be redundant.
If you have more question, please let us know!

All the best,

Two comments:

  1. Indentation is extremely important, it’s how Python creates blocks of code.
  2. Please do not post your code on the forum. That’s not allowed by the course honor code.
    I have edited your message to remove the code.