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

2020-12-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mike, please ask questions on question forums such as python-list (mail.python.org) or stackoverflow.com, where other beginners can see the answer. Also, IDLE is not Python. In particular, python's response to code you send to python usually has nothing to

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

2020-12-03 Thread Christian Heimes
Christian Heimes 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 ___

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

2020-12-03 Thread mike dalrymple
New submission from mike dalrymple : Downloaded Python 3.9.0 Documentation indicates: math.sqrt(x) Return the square root of x. When I use in IDLE shell 3.9.0, I receive error: >>> sqrt(25) Traceback (most recent call last): File "", line 1, in sqrt(25) NameError: name 'sqrt' is not defi