I'm a sophomore data science major and I'm trying to figure out the best programming language to learn data structures and algorithms (DSA). Right now, I'm learning it in C++ at school, but I find the syntax confusing. I've heard that Python is easier to grasp and more relevant to my major. Should I focus on learning DSA in Python on my own, or should I stick it out with C++? What do you all recommend?
1 Answer
It really depends on what you’re comfortable with! Both Python and C++ are valuable in the industry. Once you understand the concepts in one language, you can often apply that knowledge to others. If Python feels more intuitive to you, it might be worth focusing on that for DSA.

Thanks! I think I’ll lean towards Python since it seems easier for me to understand.