Attribute Error: module 'math' has no attribute 'isqrt'

I am facing a attribute error
my code:
##############
import math
t=int(input())
for i in range(t):
n = int(input())
print( math.isqrt(n))
################
Since math.isqrt is a function of python . Please point out the error.