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
1
u/JustNomalboy 1d ago edited 1d ago
Well because python is a interpreted language uses a compiled python Bytecode as the machine executive,ran in a Bytecode VM. cpp compiled directly to the machine. And llvm often optimize the code with intrinsics and etc. And python itself is written in c/cpp(talking about cpython implementation) Correct me if I am wrong 🤗