Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def sortList(lst, reverse):
- lst.sort(key=str, reverse=reverse)
- return lst
- lst = [1, 3.3, True, 'laa', False, 'ghte']
- print(sortList(lst, True))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement