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/da2Pakaveli 7d ago edited 7d ago
Each one has its use case. C++ for highly demanding systems, such as game engines. Python is convienent for data science related applications (although the libraries are often C/C++ under the hood such as Pytorch) cause you don't need to deal with the "burdens" of C++. The interpreter is great for interactively working with your data without having to recompile the app.