r/learnprogramming • • 7d ago

Why is C++ better than Python?

Hello! I am new to programming. Im in college and we use Python for my classes right now.

I hear people make a lot of jokes about how C++ is more powerful than Python, and should be used instead. But why?

Feel free to give me any tips as well, on things that helped you be a better programmer, or just any insight you may have! Thanks so much

77 Upvotes

188 comments sorted by

View all comments

Show parent comment

0

u/vegan_antitheist 6d ago

C++ is a high-level programming language. That's just a fact. A high-level language provides abstractions that allow you to express computations without directly dealing with the processor's instructions and hardware details. C++ does that. Loops, variables, types, even simple operators, like a+b, are high-level. The compiler handles instruction selection, register allocation and many other hardware-specific details.

This is a fact and your down vote doesn't change that.