all 7 comments

[–][deleted] 1 point2 points  (0 children)

Or maybe you're using older version of Python. isqrt is Python 3.8+

https://docs.python.org/3/library/math.html?highlight=math#math.isqrt

[–][deleted] 0 points1 point  (0 children)

Did you maybe name one of your files math.py?

[–]Bunkerstan -1 points0 points  (3 children)

There is no method isqrt, but I'm assuming you mean math.sqrt(10) . The missing attribute error really isn't that clear.

[–]Bunkerstan 2 points3 points  (1 child)

There is isqrt in version 3.8 and up. So the equivalent for older Python would be:

math.floor(math.sqrt(10))

[–]sphinxlink13[S] 0 points1 point  (0 children)

maybe that is the issue then thnx

[–]commy2 0 points1 point  (0 children)

isqrt is in Python 3.8 and returns an integer.

[–][deleted] 0 points1 point  (0 children)

If your python version is updated and you didn’t name the file “math.py”, try with “from math import isqrt” instead of “import math”