+1

If c++ is more faster than python then why do we use python?

8/15/2019 7:39:49 PM

Avinash

4 Answers

New Answer

+4

I would have to disagree with the statement that there are a lot more libraries for Python than C++. It's just that websites like "The Python Package Index" https://pypi.org/ make accessing Python packages easy, but with limitations. To create a similar site for C/C++ would be a monumental task - actually there is one; it's called Google! Many Python packages are wrappers to C/C++ libraries. The PyTK library is a case in point. It is a wrapper for the TK library. TK (ToolKit) is a graphical user interface toolkit that takes developing desktop applications to a higher level than conventional approaches. It is the standard gui for the tcl scripting language and has wrappers for many languages. There's nothing wrong with using Python, or any other programming language, in this manner. It can be a great way to get a program up and running quickly. You just need to be aware of the strengths and weaknesses of the language you are using.

+5

Simplicity

+4

It also has a lot more libraries than C++ does to automate a lot of things.

+3

For its easy syntax probably