Advertisement
STANAANDREY

lsd4 4

Oct 21st, 2022
715
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. lst1 = [int(item) for item in input("Enter the list items : ").split()]
  2.  
  3. lst1.sort(key=lambda x: x % 10)
  4.  
  5. print(lst1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement