The Python Dude

nums = [1, 10, 2, 20, 3, 30]
nums.sort(key=lambda x: x % 10)
print(nums)

8 months ago | [YT] | 5