Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- number = input()
- digits = list(number)
- digits.sort(reverse=True)
- largest_number = int(''.join(digits))
- print(largest_number)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement