Intellipaat Back

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

I want to know why python numeric computation is very fast? Say, for instance, the below program runs shorter than one second: 

import math

print math.factorial(10000)

1 Answer

0 votes
by (108k points)

Please be informed that the math module's methods are implemented in C.

It gives access to the mathematical functions specified by the C standard.

By using an efficient algorithm in C, you will defiantly get quick results.

If you want to learn python then do check out the below python tutorial video for better understanding:

Browse Categories

...