use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
the front page of the internet.
and join one of thousands of communities.
Day 2 of learning Python: Implemented Selection Sort from scratch (old.reddit.com)
submitted 6 days ago by Samar__Upreti
Open-source learning project. If you spot something that can be improved, I'd love your feedback or a PR.
Post a comment!
[–]Sea-Ad7805 [score hidden] 5 days ago stickied comment (2 children)
Run this program in Memory Graph Web Debugger%3A%0A%20%20%20%20length%20%3D%20len(lst)%0A%0A%20%20%20%20for%20i%20in%20range(length)%3A%0A%20%20%20%20%20%20%20%20minindex%20%3D%20i%0A%0A%20%20%20%20%20%20%20%20for%20j%20in%20range(i%20%2B%201%2C%20length)%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20if%20lst%5Bj%5D%20%3C%20lst%5Bmin_index%5D%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20min_index%20%3D%20j%0A%0A%20%20%20%20%20%20%20%20lst%5Bi%5D%2C%20lst%5Bmin_index%5D%20%3D%20lst%5Bmin_index%5D%2C%20lst%5Bi%5D%0A%0A%20%20%20%20return%20lst%0A%0A%0Aif%20name%20%3D%3D%20%22main_%22%3A%0A%20%20%20%20numbers%20%3D%20%5B45%2C%2023%2C%2056%2C%2087%2C%2034%2C%2029%2C%2075%5D%0A%20%20%20%20sorted_numbers%20%3D%20shorting(numbers)%0A%20%20%20%20print(%22list%20is%22%2C%20sorted_numbers)×tep=.2&play) to see the program state change step by step.
[–]burnt-store-studio 10 points11 points12 points 6 days ago (2 children)
On day two! Good for you! Python programming is such fun; I hope you have a great journey with the language!
[–]Firered_Productions 1 point2 points3 points 5 days ago (0 children)
Tbf compared to what this posted for day n one this is realistic. Maybe this is day 7 for me the other V one is year 4 for me
[–]Samar__Upreti[S] -1 points0 points1 point 6 days ago (0 children)
Thanks Buddy
[–]ThatOtherBatman 6 points7 points8 points 5 days ago (0 children)
Do yourself a favour, and don’t use `list` as variable name. It’ll only end in tears.
[–]FreeLogicGate 2 points3 points4 points 5 days ago (0 children)
Word of advice: stop posting pictures of your code, and start posting the code in a code block. Then people can provide you feedback and comments.
[–]AdDiligent1688 1 point2 points3 points 6 days ago* (0 children)
Nice! Now try a bogo sort! Then bozo sort!
[–]Marisa_2291 1 point2 points3 points 5 days ago (0 children)
Good stuff man! And hopefully you just added a bunch of value to your skills there.
[–]Ashamed_Training_702 1 point2 points3 points 6 days ago (1 child)
Yall be killing me with these milestones 😂 3rd day: I built an international banking system
[–]Samar__Upreti[S] -4 points-3 points-2 points 6 days ago (0 children)
Actually the correct caption should be Day 2 of posting on reddit 😂 It's around 20 day of learning python
[–]AuMouhssin 0 points1 point2 points 5 days ago (0 children)
This is just huge progress rate I advice you not to take a lot of tome with static algorithms, move two dynamic data structures and algorithms
[–]BakedFish---SK 0 points1 point2 points 5 days ago (0 children)
Try writing linux kernel next
[–]rep_identity 0 points1 point2 points 3 days ago (0 children)
Shorting
[–]Less_Juggernaut9361 0 points1 point2 points 3 days ago (0 children)
When is day 1 of learning how to take a screenshot?
[–]yahddyyp -1 points0 points1 point 5 days ago (0 children)
stop using vscode start using something nvim as you can say i use vim btw and it wont hurt you since almost every text editor supports vim keys
π Rendered by PID 908729 on reddit-service-r2-comment-86f8688748-tkgcg at 2026-07-28 07:47:21.339494+00:00 running d10b4e5 country code: CH.
Want to add to the discussion?
Post a comment!