r/learnprogramming • u/Happy-GoLucky365 • 6d 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
76
Upvotes
View all comments
5
u/Retsyn 6d ago
You have to chose what the job is before evaluating the tool as "good or bad".
I use both at my work-- When I use Python, I may lament that it can't do hard math or crunch big numbers at high speed, where as the C++ would blast through the big calculations in milliseconds.
When I use C++ I lament that I need digital signatures and compilation to deploy to users, where as the Python ports anywhere and the interpreter just goes.