Python – Number Based
Create a test() function which takes the integer "n" as input and prints the following output :
a) Sort a number in decending order
b) Determine whether the number in decending order is a prime or not. If the number is prime, the print "Sorted Number is a prime number". otherwise print "Sorted Number is not a prime number"
c) Determine all of the factors of the decending order number
d) Finally, sort the given numbers in ascending order
Required Output :
Suppose if we are giving a random 5 digit number as input, for ex. 78343 , the expected output should be in the below format : 87433
Sorted Number is a prime number
1
87433
33478
Explanation :
1. Decending order of 78343 is 87433
2. The decending order number is a prime number. So have to print " Sorted number is a prime number"
3. The factors of 87433 are 1 and 87433
4. Ascending order of given num 78343 is 33478
►Fresco Play Hands on Answers Playlist:
• Fresco Play Hands on Answers
►Subscribe to our new channel:
/ technontechtv
For Business Inquiry :
[email protected]
Python – Number Based
Python – Number Based fresco play solution
fresco play milestone challenge solution
fresco play milestone challenge solution python
Music: Wander
Musician: @iksonmusic