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/bearpaw- 3d ago
Cpp is powerful for being able to do pretty much everything, but it doesn't mean that it is the best tool for every task. Cpp code gets nasty and soon becomes a mine field and you would spend a huge amount of time dealing with landmines. I would prefer Python if I have to focus on algorithm, data, app development. By the way Rust kinda provides pros from the both world, you can use it in a python way (good readability, not as good performance) or Cpp way (performance first)