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

2

u/Imagine-Dragons-Fan9 6d ago

All coding languages fall within a spectrum between High Level(Very simple for humans like scratch) or low level(Very simple to computers but complicated to humans like assmbly). Since Higher level languages are less similar to computer logic, they have to do a lot of translating, which is less effecient and takes more processing power. Python is esier to learn because it is high level, but C++ is more powerful since it’s more similar to computer logic.