6 kyu

Dictionary of Factors

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

Stats:

CreatedMar 7, 2017
PublishedMar 16, 2017
Warriors Trained653
Total Skips16
Total Code Submissions952
Total Times Completed429
Python Completions429
Total Stars14
% of votes with a positive feedback rating87% of 104
Total "Very Satisfied" Votes83
Total "Somewhat Satisfied" Votes15
Total "Not Satisfied" Votes6
Total Rank Assessments14
Average Assessed Rank
6 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • Climacus Avatar
  • smile67 Avatar
  • rowcased Avatar
  • RobsonMoon Avatar
  • saudiGuy Avatar
Ad