##### solve this with in 15 mins###### 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...


##### solve this with in 15 mins######


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)}


Question: 1<br>A Special Number is a number when the sum of the factorial of digits is<br>equal to the original number (given number). For example, 145 is a Special<br>Number because 145 = 1! + 4! + 5!.<br>Your task is to write a Python code that takes some numbers as user inpt<br>(separated by a comma) in a single line and groups the Special &<br>Non-Special numbers in a dictionary. Note that the values corresponding to<br>the keys in that dictionary must be in tuple format.<br>Sample Input 1:<br>145, 346, 2, 83221, 7999888<br>Sample Output 1:<br>{'Special: (145, 2), 'Non-Special': (346, 83221, 7999888 )}<br>Sample Input 2:<br>1431, 69716, 353, 7969828<br>Sample Output 2:<br>+.<br>{'Special': (), 'Non-Special': (1431, 69716, 353, 7969828)}<br>

Extracted text: 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 inpt (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)}
Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here