• + 0 comments

    Python

    import math
    def squares(a, b):
        # Write your code here
        c=0
        for each in range(math.floor(math.sqrt(a)), math.floor(math.sqrt(b))+1):
            if a<=math.pow(each, 2)<=b:
                c+=1
        return c