Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num = input()
- list1 = []
- for i in num:
- list1.append(i)
- if i == ",":
- list1.remove(',')
- if i == ' ':
- list1.remove(' ')
- for i in range(0, len(list1)):
- list1[i] = int(list1[i])
- list1.sort()
- list1.reverse()
- #for element in list1:
- print(', '.join(map(str,list1)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement