r/AskProgramming • • 6d ago

Career/Edu C++ vs python

I'm a first year cs student and I'm wondering which is better for getting a job. I know it's more about your skills and not only the programming language but they do have different niches that they excel in.

The reason I'm asking is that I already know Python and have done extensive work in it. But I recently discovered C++ and truth be told I really like it and prefer it over Python. C++ just has so much more control and logic that you can manipulate in it. It feels more concrete for some reason.

Either way, I know learning Python is essential cuz it's the fastest way to get things done. But at the same time it's also the most popular language, so I'm wondering will learning C++ be worthwhile?

5 Upvotes

22 comments sorted by

View all comments

0

u/powderviolence 6d ago

They can both do everything the other can. C++ requires more lines for the same task, but with the benefit you mentioned of greater control and the ratio of lines to actions being close to 1. Python is popular in industry because it does MORE with less, and is lexically similar to English such that more people can write it than can write C++ with the same level of background ability. It really becomes a question of what you want out of the whole endeavor.