Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (4.1k points)

Which is better, Python or C++?

1 Answer

0 votes
by (14.4k points)

Given no common base, let me assume some factors and see how each of these languages perform:

  • Speed of execution: C++ is a lower level, explicitly compiled language whereas Python is a higher level, interpreted language. Therefore, C++ will always be faster than Python. 
  • Readability / Efficiency of the programmer: Python was developed after C++. While C++ holds the crown of faster machine level execution, it also makes it lose some points when it comes to the readability and efficiency of the programmer. 
  • Language complexity:  Tremendous number of available libraries make C++ a super powerful language for big software development projects. Even for higher-order mathematical computations, C++ is more often than not, the choice of mathematicians. This is somewhat limited in Python, where you are restricted to follow a confined pattern while keeping the design to be simple.
  • Web app development / Web server management: Python is widely used in web development and scripting. Python also has a very powerful, high level, framework solely dedicated to web app development: Django. You can even write drivers in Python! Nothing like that is easily achievable in C++.
  • Memory Management: Even after decades of C++ development, low-level memory management is still something many C++ programmers scratch their heads about. You don’t need to worry about this stuff in the Python world.

Related questions

0 votes
1 answer
asked Oct 30, 2019 in Python by humble gumble (19.4k points)
0 votes
1 answer
asked Sep 23, 2019 in Python by Karan Singh (4.1k points)
0 votes
4 answers
0 votes
1 answer
0 votes
1 answer
asked Feb 5, 2021 in Python by laddulakshana (16.4k points)

Browse Categories

...