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

 

amgreyson@gmail.com > partialProductsExtend
prev  |  next  |  chance

Given a three-digit positive integer and a one-digit positive integer, return the partial products expression. For example, given the inputs 123 and 9, return the expression '900 + 180 + 27'


partialProductsExtend(953, 5) → '4500 + 250 + 15'
partialProductsExtend(281, 2) → '400 + 160 + 2'
partialProductsExtend(112, 9) → '900 + 90 + 18'

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

def partialProductsExtend(threeDigitFactor, oneDigitFactor):

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: 150 Post-solution available

Copyright Nick Parlante 2017 - privacy