PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#Collect the data from user
number = input('Enter number')
#Declare a dictionary that would hold the numbers and their frequency as pair
numbers_freq = {}
#Turn the number collected to a list by join and split method
new_number = ",".join(number).split(',')
#Now collect the frequency of the number using for loop
#the freq would be stored as freq and would use the .count built in method for list
for numb in new_number:
freq = new_number.count(numb)
numbers_freq[numb] = freq
#Turn the list to a set to remove all duplicate numbers because sets only allow unique data structure then turn it back to list
new_number = list(set(new_number))
#Sort the number i.e from decending to ascending
new_number.sort()
#Since Panadigital numbers are numbers that must have at least one digit from 0-9
#I declared a list holding numbers from 0-9
panadigital_standards = ['0','1','2','3','4','5','6','7','8','9']
#Declare panadigital as false
panadigital = False
#Now for the tricky part:
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run