Advertisement
STANAANDREY

lsd4 3

Oct 21st, 2022
700
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. def sortList(lst, reverse):
  2.     lst.sort(key=str, reverse=reverse)
  3.     return lst
  4.  
  5. lst = [1, 3.3, True, 'laa', False, 'ghte']
  6.  
  7. print(sortList(lst, True))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement