Advertisement
go6odn28

finda_the_largest

Oct 20th, 2023
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. number = input()
  2. digits = list(number)
  3. digits.sort(reverse=True)
  4. largest_number = int(''.join(digits))
  5. print(largest_number)
  6.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement