Tu programa tiene una sola línea: print(math.sqrt(81)). En ningún lugar escribiste import math.
print(math.sqrt(81))
import math