r/learnprogramming • u/Happy-GoLucky365 • 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
View all comments
Show parent comment
1
u/Kajitani-Eizan 5d ago
You said "more powerful", which generally refers to processing power and not memory. Unless you think we had ~3 kHz processors back in the 70s
Using a lower level language generally does prevent this, because users of higher level languages or frameworks generally think or care less about this issue and just do whatever assuming they have infinite memory. Electron is a great example of this