id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

burns@bxscience.edu > makeChange
prev  |  next  |  chance

Complete the following python method. the method will accept a value of change, given in pennies and return the minimum number of quarters, dimes nickels and pennies required to make the change. The return statement should look like this: return [quarters, dimes, nickels, pennies] Hint: What types of division are possible in Python?


makeChange(98) → [3, 2, 0, 3]
makeChange(58) → [2, 0, 1, 3]
makeChange(52) → [2, 0, 0, 2]

...Save, Compile, Run (ctrl-enter)

def makeChange(ch):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 100

Copyright Nick Parlante 2017 - privacy