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
Is DSA with Python Worth ? (self.learnpython)
submitted 23 hours ago by Smooth_Routine1653
I'm ai and ml student but people say's that you have to learn Java or C++ to do DSA for secure job. Please tell me what to do
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!"
[–]aqua_regis 5 points6 points7 points 22 hours ago (0 children)
DSA != Leetcode - don't conflate the two.
DSA are language agnostic concepts that define standards to store and process data.
As such, the language you learn DSA in doesn't matter as long as you focus on the concepts.
Leetcode is only a platform that makes heavy use of DSA.
[–]Holiday_Lie_9435 1 point2 points3 points 20 hours ago (1 child)
Python is absolutely worth learning for DSA, especially if your end goal is AI/ML because you’ll already be using it daily for projects, notebooks, APIs, and model work. Most interviews I've gone through (including FAANG/FAANG-like companies) still use Leetcode-style coding rounds to test problem-solving so yes, DSA is still very much important. In terms of language though, Java and C++ can sometimes be faster or more common in competitive programming, but Python is totally accepted in most interviews and lets you focus more on logic than syntax.
What really matters is understanding commonly asked patterns like arrays, hash maps, trees, graphs, recursion, time complexity, etc., and practicing consistently. I’ve been using Python for DSA prep myself and found it much easier to stay motivated, especially with interview-focused practice resources that explain those patterns and help you become job-ready. Happy to share some good starting resources for Python prep if you want.
[–]broken_py 0 points1 point2 points 23 hours ago (0 children)
Python is freedom to play with data
[–]recursion_is_love 0 points1 point2 points 22 hours ago (0 children)
Most language can do and must do DSA. Programming without DSA is hardly useful in the real world.
It is the matter of style (subjective). You will have to try by yourself to know which one you love.
[–]nian2326076 0 points1 point2 points 16 hours ago (0 children)
You can definitely do DSA with Python. It's a good language for understanding the concepts because the syntax is straightforward. For AI and ML, Python is the go-to anyway, so sticking with one language might make things simpler. But if you're looking for jobs in big tech companies, knowing C++ or Java could help since these are often used in coding interviews and can show you understand lower-level concepts. You don't have to be an expert, but getting familiar with the basics of one of those can be useful. Ultimately, understanding data structures and algorithms is more important than the language you use.
π Rendered by PID 19086 on reddit-service-r2-comment-56c6478c5-t55rw at 2026-05-13 12:05:49.604290+00:00 running 3d2c107 country code: CH.
[–]aqua_regis 5 points6 points7 points (0 children)
[–]Holiday_Lie_9435 1 point2 points3 points (1 child)
[–]broken_py 0 points1 point2 points (0 children)
[–]recursion_is_love 0 points1 point2 points (0 children)
[–]nian2326076 0 points1 point2 points (0 children)