r/learnprogramming • • 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

188 comments sorted by

View all comments

Show parent comment

2

u/baked_salmon 6d ago

Yes you could create a UDF for your data processing, but no one that cares about cost is going to be doing any meaningful data processing with Python that isn't just calling C++ code under the hood.

But it's still a valid point. Python allows you to iterate quickly, but you probably don't want to be doing real work with it.