How to represent a number in exponential form?

I have a very large number equal to 20000! (where ! - factorial). I need to write it in exponential form. I know that in java script there is a method toExponential, which solves my problem. Prompt, please, a similar function for Python.
June 10th 19 at 15:38
1 answer
June 10th 19 at 15:40
import math, decimal

f = decimal.Decimal(math.factorial(20000))
print(format(f, '.2e'))
Thank you! - ulises.Harber commented on June 10th 19 at 15:43
Code should be cited directly in the answer, not links to other resources. - Donald_Carter73 commented on June 10th 19 at 15:46

Find more questions by tags AlgebraPython