W2_A2_Ex-8_Too many elements in d[costs]

Here is the answer to your problem. Check it out.