I thought I had cracked pset 1 (greedy) but when I submitted the code it was finding errors with some of my calculations. The main one that i struggle with is where it states that it is expecting an answer of 4 for 0.41, whereas my result (which I thought was right) is giving the answer 1 x quarter, 1 x nickel x dime, 1 x penny (i.e. giving the smallest number of coins, and going down from the biggest to the smallest)
Is anyone able to give me a hint as to what I've done incorrectly here? Thank you so much.enter image description here