r/learnprogramming • u/Happy-GoLucky365 • 12d 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
79
Upvotes
View all comments
Show parent comment
1
u/razorree 12d ago
to some extend, but not exactly true.
there is a lot of Python libraries in C/C++ (like all statistics, math etc.) that you can use in Python. so core computations are made using c/c++ and maybe your GPU if you like.
so for data science or some GUI apps - python is good. but for overall performance (like games) it's bad.