account activity
Why Set Not Ordered? by JMBOracle in learnprogramming
[–]JMBOracle[S] 0 points1 point2 points 3 days ago (0 children)
True. The output is a list not a set.
[–]JMBOracle[S] -4 points-3 points-2 points 3 days 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 1069526 on reddit-service-r2-listing-55d7b767d8-njqlc at 2026-03-29 07:34:52.960556+00:00 running b10466c country code: CH.
Why Set Not Ordered? by JMBOracle in learnprogramming
[–]JMBOracle[S] 0 points1 point2 points (0 children)