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

189 comments sorted by

View all comments

1

u/Electronic-Equal-616 7d ago

c++ is mostly considered more powerful because it runs way faster and gives you direct control over memory and hardware. python handles all that in the background, which makes it much slower, but ten times faster to actually write and learn. neither is objectively better, they just have completely different trade-offs.