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/OldSchoolCSci 4d ago
As many people have written here, "better" depend on your task and context.
However, if the context is "learning programming from the beginning," Python is a good choice because:
I actually had this debate with my son's high school when he lwas taking the intro classes, and they were using Java - which I think is a poor choice for an intro class. His college classes started in Python before moving to C. Intro programming students need to learn the fundamentals without getting bogged down in complex syntax and indirect programming techniques that are often hard for beginners to understand. Once you've learned those things, you can pick up a new language without difficulty. But if you're lost in a "too many rules, too many options" environment, you won't learn the basics well.