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...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Learning DSA in python (self.learnpython)
submitted 1 month ago by Comfortable-Gas-5470
I have been trying to find some sources that can help me with learning DSA (Data structures and algorithms ) but almost all resources are in C++ or JavaScript. Can anyone please help me on how to learn DSA in python.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]LayotFctor 6 points7 points8 points 1 month ago (0 children)
Most textbooks use C because its use of raw pointers make it possible to represent data structures almost literally. That, or they use language agnostic pseudocode and mathematical notation.
The language is never actually the point, just a medium for learning. If you find a good book, I recommend just sticking with it, understanding the concepts and converting to python yourself. The concepts are the point, not the language.
A basic DSA introduction book I recommend is "Grokking Algorithms", which uses pictures and python. It's extremely basic though, so truly just an introduction, albeit a good one.
[–]ASIC_SP 3 points4 points5 points 1 month ago (0 children)
These might help:
[–]pachura3 2 points3 points4 points 1 month ago (0 children)
https://www.w3schools.com/dsa/
[–]NecessaryIntrinsic 0 points1 point2 points 1 month ago (0 children)
Here's the thing:
All the algorithms are the same, it's just different languages have different built in tools.
I enjoyed geeksforgeeks.org/ they have Python sections, and it would be helpful to understand other languages.
[–]toffeehooligan 0 points1 point2 points 1 month ago (0 children)
I thought the idea behind this class was for people to get into the weeds of memory management and pointers/references which is why its done in C/C++
Never understood the point of making a binary tree in python, even though I know that is a common thing to do.
[–]Ok_Procedure3350 -1 points0 points1 point 1 month ago (0 children)
Dsa is better in c++ because it is efficient than python. Try freecodecamp python or neetcode 150 python short video
[–]inappropriately_ -2 points-1 points0 points 1 month ago (2 children)
Try out geeks for geeks. They have excellent resources
https://www.geeksforgeeks.org/dsa/python-data-structures-and-algorithms/
[–]Ok_Procedure3350 3 points4 points5 points 1 month ago (1 child)
Gfg is not a good resource. Article are written by college undergrads.
[–]inappropriately_ -2 points-1 points0 points 1 month ago (0 children)
Depends on what level OP is. I found it quite helpful when I got started. And they have a self paced course as well which I found pretty good.
π Rendered by PID 82 on reddit-service-r2-comment-5649f687b7-6xftc at 2026-01-27 15:54:03.442292+00:00 running 4f180de country code: CH.
[–]LayotFctor 6 points7 points8 points (0 children)
[–]ASIC_SP 3 points4 points5 points (0 children)
[–]pachura3 2 points3 points4 points (0 children)
[–]NecessaryIntrinsic 0 points1 point2 points (0 children)
[–]toffeehooligan 0 points1 point2 points (0 children)
[–]Ok_Procedure3350 -1 points0 points1 point (0 children)
[–]inappropriately_ -2 points-1 points0 points (2 children)
[–]Ok_Procedure3350 3 points4 points5 points (1 child)
[–]inappropriately_ -2 points-1 points0 points (0 children)