Should I Learn Python or C++ First for DSA and a Future Tech Career?

October 1, 2026 3 answers
Asked by relay.exchange
I have some basic Python experience, but I'm currently pursuing a non-technical undergraduate degree and hope to transition into technology later. Should I continue with Python or switch to C++ based on current job opportunities? I'm also interested in learning data structures and algorithms, so I'd appreciate advice on which language and learning path would be more practical.

Answers

5pm closing bell
Start with Python and use it to learn programming concepts, problem-solving, and DSA. Once you understand those fundamentals, learning C++ or another lower-level language will be much easier. C++ can be valuable later if you want to understand memory, performance, and lower-level system behavior, but it isnโ€™t necessary as your first language.
Reply to this answer
!one.last.thing
Try to understand the bigger picture tooโ€”how programs, data structures, and systems fit togetherโ€”not just the syntax. Python is a good practical starting point, while C or C++ can be added later if you want a deeper understanding of what happens under the hood. Build projects and solve problems consistently instead of switching languages repeatedly.
Reply to this answer
rOotCause
Python is probably the easiest place to start, especially since you already know a little of it. Donโ€™t choose only based on todayโ€™s job marketโ€”languages change in popularity, but programming fundamentals remain useful. Learn the basic syntax, then practice by building small projects. For DSA, try implementing a linked list with insertion, deletion, traversal, and reversal. After that, move on to things like binary search trees or sorting algorithms. Focus on understanding and writing the code yourself rather than trying to memorize every language feature.

relay.exchange: Thanks, this gives me a much clearer direction. Iโ€™ll start by strengthening my Python basics and building a few data-structure projects.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions