Take two numbers (separated by a space) as user input in a single linewhich will be used as a range (both numbers inclusive) later. Your task isto create and print a Python dictionary where the keys will be numbers fromthat range and the corresponding values will be the odd factors (divisors)of that number in a tuple.Sample Input 1:10 15Sample Output 1:{10: (1, 5), 11: (1, 11), 12: (1, 3), 13: (1, 13), 14: (1, 7), 15: (1, 3,5, 15)}Explanation 1:In this dictionary, the keys contain numbers from the range 10 to 15 andthe value corresponding to a number is a tuple which consists of the oddfactors of that number.-----------------------------------------------------------------Sample Input 2:20 23Sample Output 2:{20: (1, 5), 21: (1, 3, 7, 21), 22: (1, 11), 23: (1, 23)}Explanation 2:In the dictionary, the keys contain numbers from the range 20 to 23 and thevalue corresponding to a number is a tuple which consists of the oddfactors of that number.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here