Jan-07-2022, 04:53 PM
Do it in the other order. Create a set from them if you want to remove duplicates, then sort it (into a list) if you want a particular order.
a2 = sorted(set(a))
set and sorted, not working how expected!
|
|
Messages In This Thread |
set and sorted, not working how expected! - by wtr - Jan-07-2022, 01:31 PM
RE: set and sorted, not working how expected! - by Yoriz - Jan-07-2022, 01:36 PM
RE: set and sorted, not working how expected! - by bowlofred - Jan-07-2022, 04:53 PM
|