Retired
MHTTU (retired)
12barryG
Description:
Define a function to help learners recognise the value of each digit in a number. The argument will be an integer, greater than 0 and less than 1 billion, and the code should return a string. For example:-
n = 1234 should return "1 Thousand, 2 Hundreds, 3 Tens, 4 Units"
In the case of a number equal to or greater than 1 million, three digits should always be shown for thousands as indicated below:-
n = 1000000 should return "1 Million, 000 Thousands, 0 Hundreds, 0 Tens, 0 Units"
n = 1002000 should return "1 Million, 002 Thousands, 0 Hundreds, 0 Tens, 0 Units"
An invalid input should return None
Fundamentals
Stats:
Created | Sep 24, 2020 |
Warriors Trained | 20 |
Total Skips | 0 |
Total Code Submissions | 61 |
Total Times Completed | 12 |
Python Completions | 12 |
Total Stars | 0 |
% of votes with a positive feedback rating | 41% of 11 |
Total "Very Satisfied" Votes | 3 |
Total "Somewhat Satisfied" Votes | 3 |
Total "Not Satisfied" Votes | 5 |
Total Rank Assessments | 11 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |