‘type’ object is not subscriptable error message when trying to run the compute_cost code
Use range(...) instead of range[...]
range(...)
range[...]
Thank you so much! It worked.