C2_W3_Assignment: Syntax error

Hello everyone,

I’m encountering an issue with the mentioned assignment. There appears to be a syntax error in the code block that I’m unable to edit. I’m unsure how this occurred, as I’ve completed the assignment, but I’m unable to submit it due to this syntax error.

Hello @Mobin_Hajiuni

the code line mention with syntax error in my notebook is

y_pred = lmodel.predict(x).reshape(-1,1) but I guess by mistake you have typed %%!, so kindly remove that and run the cell.

Regards
DP

I’m not sure how that typo was inserted, because it looks correct in the master version of the file.

The cell is set to be non-editable.

Did you perhaps edit this notebook previously on some other platform? Or did you use the instructions at the bottom of the notebook to make some cells editable?

1 Like

Thank you for your response. I don’t recall performing any of those actions, but I followed your instructions to correct the problem, and the issue has been resolved. I appreciate your assistance.

1 Like