What's wrong with this (python)


#1

Comment body goes here.


#2
    val=math.sqrt(A)
    x=str(val).split('.')
    #print(x)
    if len(x)>1 and int(x[1])!=0:
        return 0
    return 1

#3

It is only checking for power 2 while power can be anything