nums = [3, 30, 34, 5, 9] nums = list(map(str, nums)) nums.sort(key=lambda x: x*3, reverse=True) result = str(int("".join(nums))) print(result)
To embed this project on your website, copy the following code and paste it into your website's HTML: