C++ & PYTHON comparison | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

C++ & PYTHON comparison

what are the advantage of c++ over Python and python over c++

24th Jul 2018, 8:55 AM
Johnson Hope Opeoluwa
Johnson Hope Opeoluwa - avatar
1 Answer
+ 2
I'm going to skip over the deep details and maybe wait for someone else to do so, but in a nutshell, it's something like this: C++ - Quite efficient and speedy due to direct compilation into platform-specific machine code, and by it allowing the user to access memory at a low-level. But you'll have to do lots of things manually, code can easily become a complex mess, and the learning curve is quite steep. Python - Less speedy due to it being interpreted. But syntax is simple and understandable for beginners and professionals alike. Verdict: Use C++ when you need your program to execute things quickly and efficiently and when you need to access at the hardware level. Use Python when you don't necessarily need speed in your program, but you want to create something quick and easy.
24th Jul 2018, 10:42 AM
apex137 - avatar