Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
Amir Husain Execution speed means an program or set of instructions take how much time to give resultant output. If the output generated by the program is faster than it's considered as least complex solution for that particular problem. For making an less complex solution you need to makr your code efficient in regards with time complexity by reducing unnecessary calculation from your code, reduce the looping, make the solution with efficient logic which take least number of iteration. Python is considered slow as compare to C or C++. Some calculations might come faster in python that too just because of using library functions and other things but in general for big projects python will work slow as compare to C++ as C++ is considered more nearer to assembly and code conversion from source code to executable object code is faster. so conclusions is that C++ is eay more faster and flexible than python is any complex or easy task which is why starting from competetive programming to high risk tasks C++ use
14th May 2020, 8:06 PM
DishaAhuja
DishaAhuja - avatar
+ 1
Where you found it.. It is actually complete reverse phrase.. C++ calculate very complex calculates in very less time in compare with python.. Execution time means "the time it takes to execute the lines of code in a program". So the speed is the difference between Program started and end time..
14th May 2020, 8:10 PM
Jayakrishna 🇮🇳
+ 1
Amir Husain it shows infinity doesnot mean it take more time.. A simple example : Python has simple libraries help in robotics, but when execution speed is important then c++ is preffered even though implementation is complex.. But if you know that python can do 10^10000 in less second, then what else about you asking of execution speed? 🤔 Any ways, You can read again the best answer you made for clarification. It is there detail explanation....
15th May 2020, 9:54 AM
Jayakrishna 🇮🇳