[issue42555] math function sqrt() not working in 3.9

Christian Heimes report at bugs.python.org
Thu Dec 3 08:20:05 EST 2020


Christian Heimes <lists at cheimes.de> added the comment:

You have to import the math module first and then reference the sqrt function of the math module.

>>> import math
>>> math.sqrt(25)
5.0

----------
nosy: +christian.heimes
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42555>
_______________________________________


More information about the Python-bugs-list mailing list