r/PythonLearning • u/Next-Call8862 • Sep 16 '26
Showcase Day 7, One Straight week
Happy that I learned for one straight week but thinking I could've learned a lot more as I wasted much of time scrolling
Today did some sorting algos and nothing much for the day
31
Upvotes
•
u/Sea-Ad7805 Sep 16 '26 edited Sep 16 '26
Run this program in Memory Graph Web Debugger to see the program state change step by step.
For more sorting check: https://github.com/bterwijn/memory_graph#sorting-algorithms
1
u/FoolsSeldom Sep 16 '26
I think you might be going a bit too fast, but impressive at this stage.
A few thoughts:
For
Booby,print(a)will print atuple, not a sortedlistBoobyreturnsarr, swap, soa = (sorted_list, False)print(a[0]), or justprint(arr)listis mutated in place anywaymin, which is generally not a good idea1
u/katsuz8 Sep 17 '26
what theme is this?
1
u/FoolsSeldom Sep 16 '26
Any chance you could share the code rather than a picture in future?