6 kyu
Dictionary of Factors
429Climacus
Description:
The objective of this Kata is to write a function that creates a dictionary of factors for a range of numbers.
The key for each list in the dictionary should be the number. The list associated with each key should possess the factors for the number.
If a number possesses no factors (only 1 and the number itself), the list for the key should be ['None']
The function possesses two arguments (n
and m
). Where n
is the starting number and m
is the ending number.
For example: All factors for 2 (n
) through to 6 (m
) with the number being the key in the dictionary:
{2: ['None'], 3: ['None'], 4: [2], 5: ['None'], 6: [2, 3]}
Algorithms
Fundamentals
Similar Kata:
Stats:
Created | Mar 7, 2017 |
Published | Mar 16, 2017 |
Warriors Trained | 653 |
Total Skips | 16 |
Total Code Submissions | 952 |
Total Times Completed | 429 |
Python Completions | 429 |
Total Stars | 14 |
% of votes with a positive feedback rating | 87% of 104 |
Total "Very Satisfied" Votes | 83 |
Total "Somewhat Satisfied" Votes | 15 |
Total "Not Satisfied" Votes | 6 |
Total Rank Assessments | 14 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 7 kyu |