Facing an error in the #Week 2 Practice Lab of ML Specialization - Supervised Learning

‘type’ object is not subscriptable error message when trying to run the compute_cost code


Please help, Thanks in advance!

Use range(...) instead of range[...]

Thank you so much! It worked.

1 Like