Question: Using Python, write a code that allow the user to type a range and then find all the Narcissistic Number in that range, but if

Using Python, write a code that allow the user to type a range and then find all the Narcissistic Number in that range, but if the range chosen is out of the range from 1- 100 , then print " please enter a range within 1 to 100.

Note 1: use if function

Note2: Narcissistic Number is a number that is the sum of its own digits each raised to the power of the number of digits. example: 153= 1^3 + 5^3+ 3^3

For example the 3-digit decimal number 153 is a narcissistic number because 153=13+53+33153=13+53+33.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!