Advertisement
D34d10ck3d

Untitled

Apr 10th, 2020
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. N=int(input())
  2. A=list(map(int, input().split()))
  3. B=[]
  4. B=sorted(A, key=lambda x:x%10)
  5. print(*B)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement