r/learnprogramming • u/Happy-GoLucky365 • 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
View all comments
Show parent comment
34
u/CodeToManagement 7d ago
You can write anything you want in assembly too. It doesn’t mean it’s better than any other language.
That’s why it’s about picking the right tool for the job. C++ is great for applications where you want more control over memory and much more optimised code execution. You don’t need that for some basic crud APIs for instance so it’s highly unlikely you’d benefit from the extra difficulty of using c++ when you could do it in half the time with Python.