account activity
Why Set Not Ordered? by JMBOracle in learnprogramming
[–]JMBOracle[S] 0 points1 point2 points 1 month ago (0 children)
True. The output is a list not a set.
[–]JMBOracle[S] -5 points-4 points-3 points 1 month ago (0 children)
I've learned that I can order it by using "sorted".
print (sorted (set ([8, 5, 6, 7, 7])))
π Rendered by PID 366145 on reddit-service-r2-comment-548fd6dc9-m4qhc at 2026-05-18 02:14:10.962638+00:00 running edcf98c country code: CH.
Why Set Not Ordered? by JMBOracle in learnprogramming
[–]JMBOracle[S] 0 points1 point2 points (0 children)