", line 1, in O...">

Error OverflowError: math range error

>>> import math >>> math.pow(2, 3000) Traceback (most recent call last): File "<stdin>", line 1, in <module> OverflowError: math range error 

How can i fix this?

+6
python math
source share
1 answer

Use the built-in operator.

 2**3000 
+18
source share

All Articles