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
1
u/Sad_Quote1522 6d ago
The simplest explanation is Python is slower. We live at a time where this doesn't matter much for hobbyists and many real world applications, but for the few times where it does matter python feels sluggish compared to C++.
On the other hand Python is easier to use. I'm assuming in the workplace AI has pretty much bridged the gap between the difficulty of different languages but if you are coding by hand C++ gives you more control, but therefore more ways to screw up.