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

 

numToWordsLarge


numToWordsLarge will convert an integer from 0 to 999,999 into the words that spell out the number. Place hyphens between the tens and ones : "twenty-two" and use the british style and between the hundreds and the rest of the number : "one hundred and one"


numToWordsLarge(929491) → 'nine hundred and twenty-nine thousand four hundred and ninety-one'
numToWordsLarge(3100) → 'three thousand one hundred'
numToWordsLarge(123000) → 'one hundred and twenty-three thousand'

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

def numToWordsLarge(n):

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

Copyright Nick Parlante 2017 - privacy