import math
x=9
raiz=math.sqrt(x)
print raiz
for i in range (raiz,9): #Problema aqui
i=i**2
print i
I need to create a for with the root of an operation (always integer 2, 3,4,5 ...) but when I try to use it the way I did the error. It says the root has to be integer (python understands like 2.0, 3.0, etc.) Does anyone know how I can handle isdso?