Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lst1 = [int(item) for item in input("Enter the list items : ").split()]
- lst1.sort(key=lambda x: x % 10)
- print(lst1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement