DEV Community

loading...

Discussion on: Daily Challenge #177 - Supersize Me

Collapse
candidateplanet profile image
lusen / they / them 🏳️‍🌈🥑
def super_size(num):
  integers = [int(c) for c in str(num)]
  integers.sort(reverse=True)
  return ''.join([str(i) for i in integers])