Question
Question: 1 A Special Number is a number when the sum of the factorial of digits is equal to the original number (given number). For
Question: 1 A Special Number is a number when the sum of the factorial of digits is equal to the original number (given number). For example, 145 is a Special Number because 145 = 1! + 4! + 5!. Your task is to write a Python code that takes some numbers as user input (separated by a comma) in a single line and groups the Special & Non-Special numbers in a dictionary. Note that the values corresponding to the keys in that dictionary must be in tuple format. Sample Input 1: 145, 346, 2, 83221, 7999888 Sample Output 1: {'Special': (145, 2), 'Non-Special': (346, 83221, 7999888 )} ----------------------------------------------------------------- Sample Input 2: 1431, 69716, 353, 7969828 Sample Output 2: {'Special': (), 'Non-Special': (1431, 69716, 353, 7969828)}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started