Join my course at Udemy (Python Programming Bible-From beginner to advanced )

Blogger templates

Sunday 9 August 2020

Which one is better- Python or C++ ?

 

Both python and C++ are good in their own fields. Python focuses on software quality and readability and simplicity of code. Compared to C/C++, python requires less code compared to C or C++. For example a “Hello World” program in C/C++ will require at least 5–6 lines of code but in case of python it will be just one line of code to write “Hello World” program.

Software quality is mandatory in python and it is not a option in python. Application development and software quality always goes hand-in-hand in python. But if you compare this with C or C++, application development is done first where developers focuses only on application development and later one more project is planned to focus on software quality.

Python is now very vast and it’s library is increasing day by day. One can develop many application for GUI, Gaming, data analysis, machine learning, deep learning, visualization and the list is continuously growing.

Only minus point of python is that it is slow and so it is not as efficient as compiled language like C,C++ or JAVA. But still there is workaround in python for this. Python has the ability to integrate with C API and that perfectly merges Python with C code. This means merging of easy coding in python and faster and efficient execution of C/C++. NumPy and Pandas libraries that are widely popular for data analysis are built on this framework that merges python and C API.

In summary, i would say we can’t directly compare C and Python because both are good in their own field. One should check the possibility to merge both language to get simple coding in python with faster execution of C/C++.

Share:

0 comments:

Post a Comment

Feature Top (Full Width)

Pageviews

Search This Blog