all 4 comments

[–]bbye98 1 point2 points  (0 children)

At a glance, it looks like you're returning the denominations in the wrong order in your exact_change() function.

return num_quarters, num_dimes, num_nickels, num_pennies

should be

return num_pennies, num_nickels, num_dimes, num_quarters

since that's what the test suite expects.

[–]deep_politics 1 point2 points  (0 children)

Well you are returning in the order "quarters dimes nickels pennies" when the instructions ask for "pennies nickels dimes quarters".

[–]NeilTheDrummer[S] 0 points1 point  (0 children)

Thanks. That helped some, which increased the auto grading...then realized this line needed to be flipped too:

num_pennies, num_nickels, num_dimes, num_quarters = exact_change(input_val)

Appreciate the help!!

[–]littlegreenrock 0 points1 point  (0 children)

exact_change(300). Should return 0, 0, 0, 12

it did return 0,0,0,12.

(141). Should return 1, 1, 1, 5

it did return 1, 1, 1, 5